MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / test_acp_turn_executes_tool

Function test_acp_turn_executes_tool

tests/test_acp.py:73–81  ·  view source on GitHub ↗
(acp_agent)

Source from the content-addressed store, hash-verified

71
72@pytest.mark.asyncio
73async def test_acp_turn_executes_tool(acp_agent):
74 agent, conn = acp_agent
75 session = await agent.newSession(SimpleNamespace(cwd=None))
76 prompt = SimpleNamespace(sessionId=session.sessionId, prompt=[{"text": "hello"}])
77 response = await agent.prompt(prompt)
78 assert response.stopReason == "end_turn"
79 assert any("tool:ping" in str(update) for update in conn.updates)
80 await agent.cancel(SimpleNamespace(sessionId=session.sessionId))
81 assert agent._sessions[session.sessionId].cancelled
82
83
84@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 3

newSessionMethod · 0.80
promptMethod · 0.80
cancelMethod · 0.80

Tested by

no test coverage detected