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

Function strip_top_level_internal_text

src/utils/export_renderer.py:111–115  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

109
110
111def strip_top_level_internal_text(text: str) -> str:
112 stripped = strip_system_reminder_blocks(text)
113 for regex in _INTERNAL_TEXT_TAG_REGEXES:
114 stripped = regex.sub("", stripped)
115 return stripped.strip()
116
117
118def is_internal_text(text: str) -> bool:

Callers 6

is_internal_textFunction · 0.85
render_text_markdownFunction · 0.85
serialize_content_blockFunction · 0.85
serialize_content_blocksFunction · 0.85
_plain_block_linesFunction · 0.85

Calls 1

Tested by

no test coverage detected