| llm_parse_tags | R Documentation |
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.
llm_parse_tags(x, tags)
x |
Character scalar or llmr_response. |
tags |
Character vector of tag names to extract. |
A named list of extracted tag values, or NULL when no requested tag
is found.
llm_parse_tags_col(), llm_mutate_tags()
llm_parse_tags("<age>21</age><job>student</job>", tags = c("age", "job"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.