Package smile.llm.template
package smile.llm.template
Chat templates for encoding conversation dialogs and tool definitions into prompts.
-
ClassDescriptionChat template that encodes a dialog (and optional tools) into a prompt string ready for tokenization.Java port of the MiniMax-M3
chat_template.jinja: a system block with thinking instructions, a developer block (the user's system prompt and the tool list), then one block per turn, each introduced by]~b]and closed by[e~[.Java port of the Qwen3.5 / Qwen3.8chat_template.jinja, byte for byte (the golden tests compare it with transformers' rendering of the real templates).The behaviours in which the released Qwen3.x templates differ.