Package smile.llm.tool


package smile.llm.tool
  • Class
    Description
    Strips 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 ToolCallParser to a completed generation when options request tool-call parsing, and always sanitizes visible assistant text.