Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class TestNonStreamingEvents:
"""Test non-streaming event sending and polling."""

@pytest.mark.asyncio
async def test_send_event_and_poll(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_poll(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and polling for the response."""
# Create a task for this conversation
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down Expand Up @@ -104,7 +104,7 @@ class TestStreamingEvents:
"""Test streaming event sending."""

@pytest.mark.asyncio
async def test_send_event_and_stream(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_stream(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and streaming the response."""
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
task = task_response.result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class TestNonStreamingEvents:
"""Test non-streaming event sending and polling."""

@pytest.mark.asyncio
async def test_send_event_and_poll(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_poll(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and polling for the response."""
# TODO: Create a task for this conversation
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class TestNonStreamingEvents:
"""Test non-streaming event sending and polling."""

@pytest.mark.asyncio
async def test_send_event_and_poll(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_poll(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and polling for the response."""
# Create a task for this conversation
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TestNonStreamingEvents:
"""Test non-streaming event sending and polling."""

@pytest.mark.asyncio
async def test_send_event_and_poll(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_poll(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and polling for the response."""
# TODO: Create a task for this conversation
# task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down Expand Up @@ -83,7 +83,7 @@ class TestStreamingEvents:
"""Test streaming event sending."""

@pytest.mark.asyncio
async def test_send_event_and_stream(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_stream(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and streaming the response."""
# TODO: Create a task for this conversation
# task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class TestNonStreamingEvents:
"""Test non-streaming event sending and polling with MCP tools."""

@pytest.mark.asyncio
async def test_send_event_and_poll_simple_query(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_poll_simple_query(self, client: AsyncAgentex, agent_id: str):
"""Test sending a simple event and polling for the response (no tool use)."""
# Create a task for this conversation
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class TestNonStreamingEvents:
"""Test non-streaming event sending and polling."""

@pytest.mark.asyncio
async def test_send_event_and_poll(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_poll(self, client: AsyncAgentex, agent_id: str):
"""Test sending a single event and polling for the response."""
# Create a task for this conversation
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class TestNonStreamingEvents:
"""Test non-streaming event sending and polling."""

@pytest.mark.asyncio
async def test_multi_agent_workflow_complete(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_multi_agent_workflow_complete(self, client: AsyncAgentex, agent_id: str):
"""Test the complete multi-agent workflow with all agents using polling that yields messages."""
# Create a task for the orchestrator
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down Expand Up @@ -146,7 +146,7 @@ class TestStreamingEvents:
"""Test streaming event sending."""

@pytest.mark.asyncio
async def test_multi_agent_workflow_streaming(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_multi_agent_workflow_streaming(self, client: AsyncAgentex, agent_id: str):
"""Test the multi-agent workflow with streaming responses and early exit."""
# Create a task for the orchestrator
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class TestNonStreamingEvents:
"""Test non-streaming event sending and polling."""

@pytest.mark.asyncio
async def test_send_event_and_poll(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_poll(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and polling for the response."""
# Create a task for this conversation
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down Expand Up @@ -104,7 +104,7 @@ class TestStreamingEvents:
"""Test streaming event sending."""

@pytest.mark.asyncio
async def test_send_event_and_stream(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_stream(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and streaming the response."""
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
task = task_response.result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class TestNonStreamingEvents:
"""Test non-streaming event sending and polling with OpenAI Agents SDK."""

@pytest.mark.asyncio
async def test_send_event_and_poll_simple_query(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_poll_simple_query(self, client: AsyncAgentex, agent_id: str):
"""Test sending a simple event and polling for the response (no tool use)."""
# Create a task for this conversation
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async def agent_id(client, agent_name):
class TestNonStreamingEvents:
"""Test non-streaming event sending and polling with state machine workflow."""
@pytest.mark.asyncio
async def test_send_event_and_poll_simple_query(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_poll_simple_query(self, client: AsyncAgentex, agent_id: str):
"""Test sending a simple event and polling for the response (no tool use)."""
# Create a task for this conversation
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down Expand Up @@ -127,7 +127,7 @@ async def test_send_event_and_poll_simple_query(self, client: AsyncAgentex, _age
class TestStreamingEvents:
"""Test streaming event sending with state machine workflow."""
@pytest.mark.asyncio
async def test_send_event_and_stream(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_stream(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and streaming the response."""
# Create a task for this conversation
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TestNonStreamingEvents:
"""Test non-streaming event sending and polling."""

@pytest.mark.asyncio
async def test_send_event_and_poll(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_poll(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and polling for the response."""
# TODO: Create a task for this conversation
# task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down Expand Up @@ -97,7 +97,7 @@ class TestStreamingEvents:
"""Test streaming event sending."""

@pytest.mark.asyncio
async def test_send_event_and_stream(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_stream(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and streaming the response."""
# TODO: Create a task for this conversation
# task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TestNonStreamingEvents:
"""Test non-streaming event sending and polling."""

@pytest.mark.asyncio
async def test_send_event_and_poll(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_poll(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and polling for the response."""
# TODO: Create a task for this conversation
# task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down Expand Up @@ -97,7 +97,7 @@ class TestStreamingEvents:
"""Test streaming event sending."""

@pytest.mark.asyncio
async def test_send_event_and_stream(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_stream(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and streaming the response."""
# TODO: Create a task for this conversation
# task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TestNonStreamingEvents:
"""Test non-streaming event sending and polling."""

@pytest.mark.asyncio
async def test_send_event_and_poll(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_poll(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and polling for the response."""
# TODO: Create a task for this conversation
# task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down Expand Up @@ -97,7 +97,7 @@ class TestStreamingEvents:
"""Test streaming event sending."""

@pytest.mark.asyncio
async def test_send_event_and_stream(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_stream(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and streaming the response."""
# TODO: Create a task for this conversation
# task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TestNonStreamingEvents:
"""Test non-streaming event sending and polling."""

@pytest.mark.asyncio
async def test_send_event_and_poll(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_poll(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and polling for the response."""
# TODO: Create a task for this conversation
# task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down Expand Up @@ -97,7 +97,7 @@ class TestStreamingEvents:
"""Test streaming event sending."""

@pytest.mark.asyncio
async def test_send_event_and_stream(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_stream(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and streaming the response."""
# TODO: Create a task for this conversation
# task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TestNonStreamingEvents:
"""Test non-streaming event sending and polling."""

@pytest.mark.asyncio
async def test_send_event_and_poll(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_poll(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and polling for the response."""
# TODO: Create a task for this conversation
# task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down Expand Up @@ -97,7 +97,7 @@ class TestStreamingEvents:
"""Test streaming event sending."""

@pytest.mark.asyncio
async def test_send_event_and_stream(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
async def test_send_event_and_stream(self, client: AsyncAgentex, agent_id: str):
"""Test sending an event and streaming the response."""
# TODO: Create a task for this conversation
# task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
Expand Down
5 changes: 3 additions & 2 deletions examples/tutorials/run_all_agentic_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ wait_for_agent_ready() {
echo -e "${YELLOW}⏳ Waiting for ${name} agent to be ready...${NC}"

while [ $elapsed -lt $timeout ]; do
if grep -q "Application startup complete" "$logfile" 2>/dev/null; then
if grep -q "Application startup complete" "$logfile" 2>/dev/null || \
grep -q "Running workers for task queue" "$logfile" 2>/dev/null; then
echo -e "${GREEN}✅ ${name} agent is ready${NC}"
return 0
fi
Expand Down Expand Up @@ -382,4 +383,4 @@ main() {
}

# Run main function
main
main