Extracts simple XML-like tags from a character scalar or llmr_response, such
as <age>21</age> and <job>student</job>. This is intended for soft
structured output, not full XML validation.
Arguments
- x
Character scalar or llmr_response.
Character vector of tag names to extract.
Examples
llm_parse_tags("<age>21</age><job>student</job>", tags = c("age", "job"))