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

Function _tool_result_fields

src/query/agent_loop_compat.py:80–88  ·  view source on GitHub ↗

Read (tool_use_id, content, is_error) from either block shape.

(block: Any)

Source from the content-addressed store, hash-verified

78
79
80def _tool_result_fields(block: Any) -> tuple[str, Any, bool]:
81 """Read (tool_use_id, content, is_error) from either block shape."""
82 if isinstance(block, ToolResultBlock):
83 return block.tool_use_id, block.content, bool(block.is_error)
84 return (
85 block.get("tool_use_id", ""),
86 block.get("content", ""),
87 bool(block.get("is_error")),
88 )
89
90
91def run_query_as_agent_loop_sync(

Callers 1

run_query_as_agent_loopFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected