Expand description
Robust tool call parser with XML and JSON fallback
Handles multiple formats for tool calls:
- Native function calling (tool_calls in response)
- XML-style
… blocks - JSON code blocks with tool schema
- Markdown code blocks with tool invocations
Structs§
- Parse
Result - Result of parsing content for tool calls
- Parsed
Tool Call - A parsed tool call
Enums§
- Parse
Method - How the tool call was parsed
Functions§
- extract_
text_ only - Extract just the text content from a response, removing tool calls
- parse_
tool_ calls - Parse content for tool calls using multiple strategies
- validate_
tool_ call - Validate that a parsed tool call has the required structure