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

Function _block_text

src/command_system/export_command.py:89–92  ·  view source on GitHub ↗
(block: Any)

Source from the content-addressed store, hash-verified

87
88
89def _block_text(block: Any) -> str:
90 if isinstance(block, Mapping):
91 return block.get("text") or ""
92 return getattr(block, "text", "") or ""
93
94
95def extract_first_prompt(messages: Any) -> str:

Callers 1

extract_first_promptFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected