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

Function is_text_block

src/utils/export_renderer.py:255–256  ·  view source on GitHub ↗
(block: Any)

Source from the content-addressed store, hash-verified

253
254
255def is_text_block(block: Any) -> bool:
256 return _is_obj(block) and _btype(block) == "text" and isinstance(_btext(block), str)
257
258
259def is_tool_result_block(block: Any) -> bool:

Callers 6

extract_first_promptFunction · 0.90
is_internal_text_blockFunction · 0.85
is_synthetic_contentFunction · 0.85
serialize_content_blocksFunction · 0.85

Calls 3

_is_objFunction · 0.85
_btypeFunction · 0.85
_btextFunction · 0.85

Tested by

no test coverage detected