Enum LM.ToolCallingFormat
The tool-call wire protocol a chat template speaks: which markers open a call, how arguments are shaped, and how results are fed back. Detected from the template fingerprint at load time; assignable through ChatToolCallingFormat so an imported model whose template the detection does not recognize can declare its dialect instead of falling back to the generic flow.
public enum LM.ToolCallingFormat
Fields
Disabled = -1Tool calling is turned off for the model: tools are never rendered into the prompt and no output is parsed as a call.
Default = 0The generic flow: tool definitions render as structured text and calls parse with the tolerant reader. The fallback for templates with no recognized dialect.
Granite = 1The Granite family's tool-call protocol.
Qwen = 2The Qwen family's tool-call protocol.
Magistral = 3The Magistral reasoning models' tool-call protocol.
MistralSmall = 4The Mistral Small family's tool-call protocol.
GptOss = 5The GPT-OSS family's tool-call protocol.
Phi4 = 6The Phi-4 family's tool-call protocol.
MistralV3Tekken = 7The Mistral V3 protocol on the Tekken tokenizer variant.
MinistralV3 = 8The Ministral V3 family's tool-call protocol.
Glm = 9The GLM family's tool-call protocol.
Nemotron3 = 10The Nemotron 3 family's tool-call protocol.
Gemma4 = 11The Gemma 4 family's tool-call protocol.
MuseAtem = 12The ATEM function-calling protocol spoken by the Muse family.