Package smile.llm.tool
package smile.llm.tool
-
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: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.