Skip to content

Commit d44c2f2

Browse files
committed
validating the diff checker works
1 parent b0eb068 commit d44c2f2

File tree

2 files changed

+5
-21
lines changed

2 files changed

+5
-21
lines changed

.github/workflows/build-and-push-tutorial-agent.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,9 @@ jobs:
4444
all_agents=$(find examples/tutorials -name "manifest.yaml" -exec dirname {} \; | sort)
4545
agents_to_build=()
4646
47-
echo "DEBUG: REBUILD_ALL environment variable: '$REBUILD_ALL'"
48-
4947
if [ "$REBUILD_ALL" = "true" ]; then
5048
echo "Rebuild all agents requested"
51-
echo "DEBUG: All agents found: $all_agents"
5249
agents_to_build=($(echo "$all_agents"))
53-
echo "DEBUG: Agents to build array has ${#agents_to_build[@]} items"
5450
5551
echo "### 🔄 Rebuilding All Tutorial Agents" >> $GITHUB_STEP_SUMMARY
5652
else
@@ -72,7 +68,7 @@ jobs:
7268
echo " ✅ Changes detected in $agent_dir"
7369
agents_to_build+=("$agent_dir")
7470
else
75-
echo " ⏭️ No changes in $agent_dir"
71+
echo " ⏭️ No changes in $agent_dir - skipping build"
7672
fi
7773
done
7874
@@ -86,20 +82,10 @@ jobs:
8682
echo "has_agents=false" >> $GITHUB_OUTPUT
8783
else
8884
echo "Agents to build: ${#agents_to_build[@]}"
89-
90-
# Debug the array contents
91-
echo "DEBUG: Array contents:"
92-
for agent in "${agents_to_build[@]}"; do
93-
echo " - $agent"
94-
done
95-
96-
# Generate JSON properly
9785
agents_json=$(printf '%s\n' "${agents_to_build[@]}" | jq -R -s -c 'split("\n") | map(select(length > 0))')
9886
echo "agents=$agents_json" >> $GITHUB_OUTPUT
9987
echo "has_agents=true" >> $GITHUB_OUTPUT
10088
101-
echo "DEBUG: Generated JSON: $agents_json"
102-
10389
echo "" >> $GITHUB_STEP_SUMMARY
10490
for agent in "${agents_to_build[@]}"; do
10591
echo "- \`$agent\`" >> $GITHUB_STEP_SUMMARY
@@ -116,8 +102,8 @@ jobs:
116102
matrix:
117103
agent_path: ${{ fromJson(needs.find-agents.outputs.agents) }}
118104
fail-fast: false
119-
name: build-${{ matrix.agent_path }}
120105

106+
name: build-${{ matrix.agent_path }}
121107
steps:
122108
- name: Checkout repository
123109
uses: actions/checkout@v4

examples/tutorials/00_sync/000_hello_acp/project/acp.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
logger = make_logger(__name__)
1111

12-
1312
# Create an ACP server
1413
acp = FastACP.create(
1514
acp_type="sync",
@@ -18,18 +17,17 @@
1817

1918
@acp.on_message_send
2019
async def handle_message_send(
21-
params: SendMessageParams
20+
params: SendMessageParams,
2221
) -> Union[TaskMessageContent, AsyncGenerator[TaskMessageUpdate, None]]:
2322
"""Default message handler with streaming support"""
2423
# Extract content safely from the message
2524
message_text = ""
26-
if hasattr(params.content, 'content'):
27-
content_val = getattr(params.content, 'content', '')
25+
if hasattr(params.content, "content"):
26+
content_val = getattr(params.content, "content", "")
2827
if isinstance(content_val, str):
2928
message_text = content_val
3029

3130
return TextContent(
3231
author="agent",
3332
content=f"Hello! I've received your message. Here's a generic response, but in future tutorials we'll see how you can get me to intelligently respond to your message. This is what I heard you say: {message_text}",
3433
)
35-

0 commit comments

Comments
 (0)