ToolParser
Abstract base class for tool call parsers.Methods
parse
Extract tool calls from model response.Raw model output containing tool calls.
List of parsed tool calls.
get_tool_prompt
Get the tool prompt for the model.JSON schema for available tools.
Formatted tool prompt to include in system message.
get_parser
Factory method to get appropriate parser for a tokenizer.Tokenizer to detect parser type from.
Appropriate parser instance (R1ToolParser or QwenToolParser).

