Expand description
XML-style tag extraction from LLM responses.
Provides parse_xml_tag and parse_xml_tags for extracting content
from XML-style structured delimiters in LLM output. Does NOT use a full
XML parser — these are lightweight tag-matching functions.
Functions§
- parse_
xml_ tag - Extract content from a single XML-style tag in an LLM response.
- parse_
xml_ tag_ with_ trace - Extract content from a single XML-style tag with diagnostic trace.
- parse_
xml_ tags - Extract content from multiple XML-style tags into a map.
- parse_
xml_ tags_ with_ trace - Extract content from multiple XML-style tags with diagnostic trace.