Skip to content

Commit 1dd4ef9

Browse files
danielmillerpclaude
andcommitted
Fix import sorting lint and revert langgraph model change
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4b5726a commit 1dd4ef9

File tree

5 files changed

+24
-17
lines changed

5 files changed

+24
-17
lines changed

.github/workflows/agentex-tutorials-test.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -145,24 +145,30 @@ jobs:
145145
working-directory: ./examples/tutorials
146146
run: |
147147
echo "🚨 Test failed for tutorial: ${{ matrix.tutorial }}"
148-
echo "📋 Printing agent logs..."
149148
150-
# Look for agent log files in the tutorial directory
151-
if find "${{ matrix.tutorial }}" -name "*.log" -type f 2>/dev/null | grep -q .; then
152-
echo "Found agent log files:"
153-
find "${{ matrix.tutorial }}" -name "*.log" -type f -exec echo "=== {} ===" \; -exec cat {} \;
149+
# Print agent logs from /tmp (where run_agent_test.sh writes them)
150+
tutorial_name=$(basename "${{ matrix.tutorial }}")
151+
agent_log="/tmp/agentex-${tutorial_name}.log"
152+
if [[ -f "$agent_log" ]]; then
153+
echo "📋 Agent logs ($agent_log):"
154+
echo "----------------------------------------"
155+
tail -100 "$agent_log"
156+
echo "----------------------------------------"
154157
else
155-
echo "No .log files found, checking for other common log locations..."
158+
echo "⚠️ No agent log at $agent_log"
159+
echo "Available /tmp/agentex-*.log files:"
160+
ls -la /tmp/agentex-*.log 2>/dev/null || echo " (none)"
156161
fi
157162
158-
# Check for any output files or dumps
159-
if find "${{ matrix.tutorial }}" -name "agent_output*" -o -name "debug*" -o -name "*.out" 2>/dev/null | grep -q .; then
160-
echo "Found other output files:"
161-
find "${{ matrix.tutorial }}" -name "agent_output*" -o -name "debug*" -o -name "*.out" -exec echo "=== {} ===" \; -exec cat {} \;
162-
fi
163+
# Print Docker server logs
164+
echo ""
165+
echo "📋 AgentEx Server (Docker) logs:"
166+
echo "----------------------------------------"
167+
cd ../../scale-agentex/agentex && docker compose logs --tail=100 agentex 2>/dev/null || echo "Could not retrieve Docker logs"
168+
echo "----------------------------------------"
163169
164-
# Print the last 50 lines of any python processes that might still be running
165-
echo "🔍 Checking for running python processes..."
170+
echo ""
171+
echo "🔍 Running python processes:"
166172
ps aux | grep python || echo "No python processes found"
167173
168174
- name: Record test result

examples/tutorials/00_sync/010_multiturn/tests/test_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
To run these tests:
1010
1. Make sure the agent is running (via docker-compose or `agentex agents run`)
1111
2. Set the AGENTEX_API_BASE_URL environment variable if not using default
12-
3. Run: pytest tests/test_agent.py -v
12+
3. Run: pytest test_agent.py -v
1313
1414
Configuration:
1515
- AGENTEX_API_BASE_URL: Base URL for the AgentEx server (default: http://localhost:5003)

examples/tutorials/00_sync/020_streaming/project/acp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
from agentex.lib import adk
77
from agentex.lib.types.acp import SendMessageParams
8+
from agentex.types.text_content import TextContent
89
from agentex.lib.types.converters import convert_task_messages_to_oai_agents_inputs
910
from agentex.lib.utils.model_utils import BaseModel
1011
from agentex.lib.sdk.fastacp.fastacp import FastACP
1112
from agentex.types.task_message_update import TaskMessageUpdate, StreamTaskMessageFull
1213
from agentex.types.task_message_content import TaskMessageContent
13-
from agentex.types.text_content import TextContent
1414
from agentex.lib.adk.providers._modules.sync_provider import (
1515
SyncStreamingProvider,
1616
convert_openai_to_agentex_events,

examples/tutorials/00_sync/030_langgraph/project/graph.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from project.tools import TOOLS
2121
from agentex.lib.adk import create_checkpointer
2222

23-
MODEL_NAME = "gpt-4o-mini"
23+
MODEL_NAME = "gpt-5"
2424
SYSTEM_PROMPT = """You are a helpful AI assistant with access to tools.
2525
2626
Current date and time: {timestamp}
@@ -46,6 +46,7 @@ async def create_graph():
4646
"""
4747
llm = ChatOpenAI(
4848
model=MODEL_NAME,
49+
reasoning={"effort": "high", "summary": "auto"},
4950
)
5051
llm_with_tools = llm.bind_tools(TOOLS)
5152

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)