Structs§
- Chat
Template Options - Model
Chat Template - Model-provided chat template, usually from GGUF or Hugging Face metadata.
- Prompt
Function Call - Prompt
Message - Common prompt-message shape used by both CLI
runand OpenAIserve. - Prompt
Tool Call - Tool-call shape exposed to model chat templates.
Enums§
- Model
Reasoning Protocol - Resolved reasoning behavior of the model-owned template and output protocol. Unknown is not equivalent to a template that explicitly has no reasoning mode.
- Reasoning
Effort - Standard reasoning effort vocabulary. A request’s omitted or null effort is
represented by
Option::None, separately from the explicit"none"value. - Reasoning
Effort Support - An explicit model contract, independent of its output parser or whether a template happens to interpolate an effort variable. Unknown support must not be treated as a declaration that a requested effort is unsupported.
Functions§
- render_
chat_ prompt - Render OpenAI-style chat messages into the prompt string the model was trained on.
- render_
chat_ prompt_ with_ model_ template - render_
chat_ prompt_ with_ model_ template_ options - render_
chat_ prompt_ with_ tools - render_
chat_ prompt_ with_ tools_ and_ model_ template - render_
prompt_ messages - Render common chat messages into the prompt string the model was trained on. Prefer a model-provided chat template when available; otherwise use a centralized legacy fallback for model families ferrum already supports.
- render_
prompt_ messages_ with_ options