The XML Agent is a specialized AI agent designed for language models that excel at reasoning and writing in XML format. It’s particularly well-suited for use with models like Anthropic’s Claude, which have demonstrated strong capabilities in structured XML output.
xmlAgent
text: The agent’s response to the user’s input
sourceDocuments: (optional) Any source documents used in formulating the response
usedTools: (optional) A list of tools used by the agent during processing
<tool>, <tool_input>, <observation>, and <final_answer> for structured interactions.