Package smile.llm.tool
package smile.llm.tool
Tool-call parsers and post-processors for structured function calling in LLM responses.
-
ClassDescriptionStrips chat-template / tool / thinking markup from assistant text so API and streaming clients never see role specials or raw tool XML mixed into visible content.Parses OpenAI-style / OGA JSON tool-call blocks:Parses MiniMax-M3 tool calls:Result of parsing assistant text for tool calls.Parses Qwen3 / Qwen3.5 / Qwen3.8 XML tool-call blocks:Parses assistant completion text into structured tool calls.Applies a
ToolCallParserto a completed generation when options request tool-call parsing, and always sanitizes visible assistant text.