Skip to content

Commit 7aaffde

Browse files
committed
stas comments
1 parent de0a529 commit 7aaffde

File tree

8 files changed

+34
-29
lines changed

8 files changed

+34
-29
lines changed

examples/tutorials/10_async/00_base/000_hello_acp/tests/test_agent.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ async def collect_stream_events() -> None:
159159
agent_response_found = True
160160
elif content.get("type") == "text" and content.get("author") == "user":
161161
# Check for user message echo
162-
print("here")
163162
if content.get("content") == user_message:
164163
user_echo_found = True
165164

@@ -174,7 +173,6 @@ async def collect_stream_events() -> None:
174173
event_content = TextContentParam(type="text", author="user", content=user_message)
175174
await client.agents.send_event(agent_id=agent_id, params={"task_id": task.id, "content": event_content})
176175

177-
178176
# Wait for the stream to complete (with timeout)
179177
try:
180178
await asyncio.wait_for(stream_task, timeout=stream_timeout)

examples/tutorials/10_async/00_base/090_multi_agent_non_temporal/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,19 @@ COPY 10_async/00_base/090_multi_agent_non_temporal/tests /app/090_multi_agent_no
3838
# Copy shared test utilities
3939
COPY test_utils /app/test_utils
4040

41-
# Install the required Python packages with dev dependencies (includes pytest)
42-
RUN uv pip install --system .[dev] pytest-asyncio httpx
41+
# Install the required Python packages with dev dependencies
42+
RUN uv pip install --system .[dev]
4343

4444
# Set environment variables
4545
ENV PYTHONPATH=/app
4646

4747
ARG AGENT_FILE
4848
ARG PORT
4949

50-
# Note: AGENT_NAME should be set at runtime based on which agent is running
50+
# Set test environment variables
51+
ENV AGENT_NAME=ab090-multi-agent-non-temporal
52+
53+
# Note: AGENT_NAME can be overridden at runtime based on which agent is running
5154
# (ab090-creator-agent, ab090-critic-agent, ab090-formatter-agent, or ab090-orchestrator-agent)
5255

5356
# Run the agent using uvicorn

examples/tutorials/10_async/00_base/090_multi_agent_non_temporal/tests/test_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
import os
1919
import uuid
2020

21-
import pytest
22-
import pytest_asyncio
21+
# import pytest
22+
# import pytest_asyncio
2323
from test_utils.async_utils import (
2424
stream_agent_response,
2525
send_event_and_poll_yielding,

examples/tutorials/10_async/10_temporal/060_open_ai_agents_sdk_hello_world/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ COPY 10_async/10_temporal/060_open_ai_agents_sdk_hello_world/tests /app/060_open
4545
# Copy shared test utilities
4646
COPY test_utils /app/test_utils
4747

48-
# Install the required Python packages with dev dependencies (includes pytest)
49-
RUN uv pip install --system .[dev] pytest-asyncio httpx
48+
# Install the required Python packages with dev dependencies
49+
RUN uv pip install --system .[dev]
5050

5151
WORKDIR /app/060_open_ai_agents_sdk_hello_world
5252

5353
ENV PYTHONPATH=/app
5454

5555
# Set test environment variables
56-
ENV AGENT_NAME=example-tutorial
56+
ENV AGENT_NAME=at060-open-ai-agents-sdk-hello-world
5757

5858
# Run the ACP server using uvicorn
5959
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/10_async/10_temporal/070_open_ai_agents_sdk_tools/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ COPY 10_async/10_temporal/070_open_ai_agents_sdk_tools/tests /app/070_open_ai_ag
4545
# Copy shared test utilities
4646
COPY test_utils /app/test_utils
4747

48-
# Install the required Python packages with dev dependencies (includes pytest)
49-
RUN uv pip install --system .[dev] pytest-asyncio httpx
48+
# Install the required Python packages with dev dependencies
49+
RUN uv pip install --system .[dev]
5050

5151
WORKDIR /app/070_open_ai_agents_sdk_tools
5252

5353
# Set environment variables
5454
ENV PYTHONPATH=/app
5555

5656
# Set test environment variables
57-
ENV AGENT_NAME=example-tutorial
57+
ENV AGENT_NAME=at070-open-ai-agents-sdk-tools
5858

5959
# Run the ACP server using uvicorn
6060
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ COPY 10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop/tests /app/08
4545
# Copy shared test utilities
4646
COPY test_utils /app/test_utils
4747

48-
# Install the required Python packages with dev dependencies (includes pytest)
49-
RUN uv pip install --system .[dev] pytest-asyncio httpx
48+
# Install the required Python packages with dev dependencies
49+
RUN uv pip install --system .[dev]
5050

5151
WORKDIR /app/080_open_ai_agents_sdk_human_in_the_loop
5252

5353
ENV PYTHONPATH=/app
5454

5555
# Set test environment variables
56-
ENV AGENT_NAME=example-tutorial
56+
ENV AGENT_NAME=at080-open-ai-agents-sdk-human-in-the-loop
5757

5858
# Run the ACP server using uvicorn
5959
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,16 @@ COPY 10_async/10_temporal/090_claude_agents_sdk_mvp/tests /app/090_claude_agents
4545
# Copy shared test utilities
4646
COPY test_utils /app/test_utils
4747

48-
# Install the required Python packages with dev dependencies (includes pytest)
49-
RUN uv pip install --system .[dev] pytest-asyncio httpx
48+
# Install the required Python packages with dev dependencies
49+
RUN uv pip install --system .[dev]
5050

5151
WORKDIR /app/090_claude_agents_sdk_mvp
5252

53-
53+
# Set environment variables
5454
ENV PYTHONPATH=/app
55+
56+
# Set test environment variables
57+
ENV AGENT_NAME=at090-claude-agents-sdk-mvp
5558
# Run the ACP server using uvicorn
5659
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
5760

examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/tests/test_agent.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
import os
2-
import uuid
3-
import asyncio
42

3+
# import uuid
4+
# import asyncio
55
import pytest
66
import pytest_asyncio
7-
from test_utils.async_utils import (
8-
poll_messages,
9-
stream_agent_response,
10-
send_event_and_poll_yielding,
11-
)
127

8+
# from test_utils.async_utils import (
9+
# poll_messages,
10+
# stream_agent_response,
11+
# send_event_and_poll_yielding,
12+
# )
1313
from agentex import AsyncAgentex
14-
from agentex.types import TaskMessage
15-
from agentex.types.agent_rpc_params import ParamsCreateTaskRequest
16-
from agentex.types.text_content_param import TextContentParam
14+
15+
# from agentex.types import TaskMessage
16+
# from agentex.types.agent_rpc_params import ParamsCreateTaskRequest
17+
# from agentex.types.text_content_param import TextContentParam
1718

1819
# Configuration from environment variables
1920
AGENTEX_API_BASE_URL = os.environ.get("AGENTEX_API_BASE_URL", "http://localhost:5003")

0 commit comments

Comments
 (0)