MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / _reply_for

Function _reply_for

tests/server/test_agent_server_e2e.py:606–612  ·  view source on GitHub ↗
(rid, req)

Source from the content-addressed store, hash-verified

604 assert init["subtype"] == "init"
605
606 async def _reply_for(rid, req):
607 await handle.send_to_agent({"type": "control_request", "request_id": rid, "request": req})
608 for _ in range(12):
609 msg = await asyncio.wait_for(gen.__anext__(), timeout=5)
610 if msg.get("type") == "control_response" and msg["response"].get("request_id") == rid:
611 return msg["response"]["response"]
612 raise AssertionError(f"no reply for {rid}")
613
614 ok = await _reply_for("s1", {"subtype": "set_output_style", "style": "concise"})
615 assert ok["ok"] is True and ok["style"] == "concise"

Callers 6

test_control_knowledgeFunction · 0.85
test_control_wikiFunction · 0.85
test_control_insightsFunction · 0.85
test_control_planFunction · 0.85

Calls 3

send_to_agentMethod · 0.80
__anext__Method · 0.80
getMethod · 0.45

Tested by

no test coverage detected