MCPcopy Index your code
hub / github.com/IBM/AssetOpsBench / _extract_content

Function _extract_content

src/agent/plan_execute/executor.py:330–332  ·  view source on GitHub ↗

Extract text from MCP tool call result content.

(content: list[Any])

Source from the content-addressed store, hash-verified

328
329
330def _extract_content(content: list[Any]) -> str:
331 """Extract text from MCP tool call result content."""
332 return "\n".join(getattr(item, "text", str(item)) for item in content)
333
334
335def _resolve_args(args: dict, context: dict[int, StepResult]) -> dict:

Callers 1

_call_toolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected