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

Function _ctx_with_agent

tests/test_task_output_polling.py:62–69  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

60
61
62def _ctx_with_agent(tmp_path: Path) -> tuple[ToolContext, str]:
63 ctx = ToolContext(workspace_root=tmp_path)
64 agent_id = generate_task_id("local_agent")
65 register_async_agent(
66 agent_id=agent_id, description="x", prompt="x",
67 agent_type="general-purpose", registry=ctx.runtime_tasks,
68 )
69 return ctx, agent_id
70
71
72def test_block_false_returns_not_ready_for_running_task(tmp_path: Path) -> None:

Calls 3

ToolContextClass · 0.90
generate_task_idFunction · 0.90
register_async_agentFunction · 0.90

Tested by

no test coverage detected