Skip to content

Commit 89e4508

Browse files
test(mypy): use typed AgentThinkResponse attributes in custom think tests
1 parent db1a877 commit 89e4508

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/custom/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_agentkit_think_routes_to_agent_management() -> None:
5454
session._agent_id = "agent-1"
5555

5656
response = session.think("Injected instruction", on_thinking_action="interrupt")
57-
assert response["agent_id"] == "agent-1"
57+
assert response.agent_id == "agent-1"
5858
assert len(client.agent_management.calls) == 1
5959
appid, agent_id, kwargs = client.agent_management.calls[0]
6060
assert appid == "appid"
@@ -80,7 +80,7 @@ async def _run() -> None:
8080
session._agent_id = "agent-1"
8181

8282
response = await session.think("Injected instruction", on_thinking_action="interrupt")
83-
assert response["agent_id"] == "agent-1"
83+
assert response.agent_id == "agent-1"
8484
assert len(client.agent_management.calls) == 1
8585
appid, agent_id, kwargs = client.agent_management.calls[0]
8686
assert appid == "appid"

0 commit comments

Comments
 (0)