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

Class AgentLoopRunResult

src/query/agent_loop_compat.py:261–270  ·  view source on GitHub ↗

Adapter result shape. Mirrors the :class:`src.tool_system.renderers.AgentLoopResult` shape for callers that previously consumed ``run_agent_loop``, AND adds a typed ``terminal`` so wrappers can discriminate exit reason.

Source from the content-addressed store, hash-verified

259
260@dataclass(frozen=True)
261class AgentLoopRunResult:
262 """Adapter result shape. Mirrors the
263 :class:`src.tool_system.renderers.AgentLoopResult` shape for
264 callers that previously consumed ``run_agent_loop``, AND adds a
265 typed ``terminal`` so wrappers can discriminate exit reason.
266 """
267 response_text: str
268 usage: dict[str, int]
269 num_turns: int
270 terminal: Terminal | None = None
271
272
273async def run_query_as_agent_loop(

Callers 1

run_query_as_agent_loopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected