MCPcopy Create free account
hub / github.com/SpaceZephyr/myskill / extract_xml_content

Function extract_xml_content

mcp-builder/scripts/evaluation.py:79–83  ·  view source on GitHub ↗

Extract content from XML tags.

(text: str, tag: str)

Source from the content-addressed store, hash-verified

77
78
79def extract_xml_content(text: str, tag: str) -> str | None:
80 """Extract content from XML tags."""
81 pattern = rf"<{tag}>(.*?)</{tag}>"
82 matches = re.findall(pattern, text, re.DOTALL)
83 return matches[-1].strip() if matches else None
84
85
86async def agent_loop(

Callers 1

evaluate_single_taskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected