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

Function _is_obj

src/utils/export_renderer.py:209–211  ·  view source on GitHub ↗

Mirror of JS ``!!block && typeof block === 'object'`` (arrays included).

(block: Any)

Source from the content-addressed store, hash-verified

207
208
209def _is_obj(block: Any) -> bool:
210 """Mirror of JS ``!!block && typeof block === 'object'`` (arrays included)."""
211 return block is not None and not isinstance(block, (str, bytes, bool, int, float))
212
213
214def _btype(block: Any) -> Any:

Callers 6

is_text_blockFunction · 0.85
is_tool_result_blockFunction · 0.85
serialize_content_blockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected