MCPcopy Create free account
hub / github.com/OpenOSINT/OpenOSINT / _extract_first_text

Function _extract_first_text

openosint/agent.py:398–403  ·  view source on GitHub ↗

Return text from the first text block in an Anthropic content list.

(content: list[Any])

Source from the content-addressed store, hash-verified

396
397
398def _extract_first_text(content: list[Any]) -> str:
399 """Return text from the first text block in an Anthropic content list."""
400 for block in content:
401 if hasattr(block, "text"):
402 return block.text
403 return ""
404
405
406async def _execute_tool(

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected