MCPcopy
hub / github.com/shareAI-lab/learn-claude-code / extract_text

Function extract_text

s07_skill_loading/code.py:204–207  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

202 return f"Updated {len(CURRENT_TODOS)} tasks"
203
204def extract_text(content) -> str:
205 if not isinstance(content, list):
206 return str(content)
207 return "\n".join(getattr(b, "text", "") for b in content if getattr(b, "type", None) == "text")
208
209
210# ═══════════════════════════════════════════════════════════

Callers 1

spawn_subagentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected