Skip to content

Commit 0defb23

Browse files
Merge pull request #175 from scaleapi/dm/fix-agentic-test-issues
Fix agentic runs for tests
2 parents 7b339f4 + 7cff65c commit 0defb23

File tree

16 files changed

+28
-27
lines changed

16 files changed

+28
-27
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class TestNonStreamingEvents:
6565
"""Test non-streaming event sending and polling."""
6666

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

106106
@pytest.mark.asyncio
107-
async def test_send_event_and_stream(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
107+
async def test_send_event_and_stream(self, client: AsyncAgentex, agent_id: str):
108108
"""Test sending an event and streaming the response."""
109109
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
110110
task = task_response.result

examples/tutorials/10_agentic/00_base/010_multiturn/tests/test_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class TestNonStreamingEvents:
6565
"""Test non-streaming event sending and polling."""
6666

6767
@pytest.mark.asyncio
68-
async def test_send_event_and_poll(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
68+
async def test_send_event_and_poll(self, client: AsyncAgentex, agent_id: str):
6969
"""Test sending an event and polling for the response."""
7070
# TODO: Create a task for this conversation
7171
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))

examples/tutorials/10_agentic/00_base/020_streaming/tests/test_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class TestNonStreamingEvents:
6565
"""Test non-streaming event sending and polling."""
6666

6767
@pytest.mark.asyncio
68-
async def test_send_event_and_poll(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
68+
async def test_send_event_and_poll(self, client: AsyncAgentex, agent_id: str):
6969
"""Test sending an event and polling for the response."""
7070
# Create a task for this conversation
7171
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))

examples/tutorials/10_agentic/00_base/030_tracing/tests/test_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class TestNonStreamingEvents:
5555
"""Test non-streaming event sending and polling."""
5656

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

8585
@pytest.mark.asyncio
86-
async def test_send_event_and_stream(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
86+
async def test_send_event_and_stream(self, client: AsyncAgentex, agent_id: str):
8787
"""Test sending an event and streaming the response."""
8888
# TODO: Create a task for this conversation
8989
# task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))

examples/tutorials/10_agentic/00_base/040_other_sdks/tests/test_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class TestNonStreamingEvents:
7474
"""Test non-streaming event sending and polling with MCP tools."""
7575

7676
@pytest.mark.asyncio
77-
async def test_send_event_and_poll_simple_query(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
77+
async def test_send_event_and_poll_simple_query(self, client: AsyncAgentex, agent_id: str):
7878
"""Test sending a simple event and polling for the response (no tool use)."""
7979
# Create a task for this conversation
8080
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))

examples/tutorials/10_agentic/00_base/080_batch_events/tests/test_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class TestNonStreamingEvents:
6666
"""Test non-streaming event sending and polling."""
6767

6868
@pytest.mark.asyncio
69-
async def test_send_event_and_poll(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
69+
async def test_send_event_and_poll(self, client: AsyncAgentex, agent_id: str):
7070
"""Test sending a single event and polling for the response."""
7171
# Create a task for this conversation
7272
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))

examples/tutorials/10_agentic/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
@@ -62,7 +62,7 @@ class TestNonStreamingEvents:
6262
"""Test non-streaming event sending and polling."""
6363

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

148148
@pytest.mark.asyncio
149-
async def test_multi_agent_workflow_streaming(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
149+
async def test_multi_agent_workflow_streaming(self, client: AsyncAgentex, agent_id: str):
150150
"""Test the multi-agent workflow with streaming responses and early exit."""
151151
# Create a task for the orchestrator
152152
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))

examples/tutorials/10_agentic/10_temporal/000_hello_acp/tests/test_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class TestNonStreamingEvents:
6565
"""Test non-streaming event sending and polling."""
6666

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

106106
@pytest.mark.asyncio
107-
async def test_send_event_and_stream(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
107+
async def test_send_event_and_stream(self, client: AsyncAgentex, agent_id: str):
108108
"""Test sending an event and streaming the response."""
109109
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
110110
task = task_response.result

examples/tutorials/10_agentic/10_temporal/010_agent_chat/tests/test_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class TestNonStreamingEvents:
7474
"""Test non-streaming event sending and polling with OpenAI Agents SDK."""
7575

7676
@pytest.mark.asyncio
77-
async def test_send_event_and_poll_simple_query(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
77+
async def test_send_event_and_poll_simple_query(self, client: AsyncAgentex, agent_id: str):
7878
"""Test sending a simple event and polling for the response (no tool use)."""
7979
# Create a task for this conversation
8080
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))

examples/tutorials/10_agentic/10_temporal/020_state_machine/tests/test_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async def agent_id(client, agent_name):
7272
class TestNonStreamingEvents:
7373
"""Test non-streaming event sending and polling with state machine workflow."""
7474
@pytest.mark.asyncio
75-
async def test_send_event_and_poll_simple_query(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
75+
async def test_send_event_and_poll_simple_query(self, client: AsyncAgentex, agent_id: str):
7676
"""Test sending a simple event and polling for the response (no tool use)."""
7777
# Create a task for this conversation
7878
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))
@@ -127,7 +127,7 @@ async def test_send_event_and_poll_simple_query(self, client: AsyncAgentex, _age
127127
class TestStreamingEvents:
128128
"""Test streaming event sending with state machine workflow."""
129129
@pytest.mark.asyncio
130-
async def test_send_event_and_stream(self, client: AsyncAgentex, _agent_name: str, agent_id: str):
130+
async def test_send_event_and_stream(self, client: AsyncAgentex, agent_id: str):
131131
"""Test sending an event and streaming the response."""
132132
# Create a task for this conversation
133133
task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex))

0 commit comments

Comments
 (0)