|
16 | 16 | """ |
17 | 17 |
|
18 | 18 | import os |
19 | | -from agentex.types import TaskMessage |
| 19 | +import uuid |
| 20 | +import asyncio |
| 21 | + |
20 | 22 | import pytest |
21 | 23 | import pytest_asyncio |
22 | | -from agentex import AsyncAgentex |
23 | 24 | from test_utils.agentic import ( |
24 | | - send_event_and_poll_yielding, |
25 | | - stream_agent_response, |
26 | 25 | poll_messages, |
| 26 | + stream_agent_response, |
| 27 | + send_event_and_poll_yielding, |
27 | 28 | ) |
28 | 29 |
|
29 | | -import uuid |
30 | | -import asyncio |
| 30 | +from agentex import AsyncAgentex |
| 31 | +from agentex.types import TaskMessage |
31 | 32 | from agentex.types.agent_rpc_params import ParamsCreateTaskRequest |
32 | 33 | from agentex.types.text_content_param import TextContentParam |
33 | 34 |
|
@@ -64,7 +65,7 @@ class TestNonStreamingEvents: |
64 | 65 | """Test non-streaming event sending and polling.""" |
65 | 66 |
|
66 | 67 | @pytest.mark.asyncio |
67 | | - 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_name: str, agent_id: str): |
68 | 69 | """Test sending an event and polling for the response.""" |
69 | 70 | # Create a task for this conversation |
70 | 71 | task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex)) |
@@ -103,7 +104,7 @@ class TestStreamingEvents: |
103 | 104 | """Test streaming event sending.""" |
104 | 105 |
|
105 | 106 | @pytest.mark.asyncio |
106 | | - 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_name: str, agent_id: str): |
107 | 108 | """Test sending an event and streaming the response.""" |
108 | 109 | task_response = await client.agents.create_task(agent_id, params=ParamsCreateTaskRequest(name=uuid.uuid1().hex)) |
109 | 110 | task = task_response.result |
|
0 commit comments