Official2026-06-29
DeepSeek Tool Calls Docs Define Strict Beta Schema Rules
Checked on June 29, 2026: DeepSeek's official Tool Calls guide documents OpenAI-compatible function calling, a Beta-only `strict` mode for exact schema matching, concrete supported and unsupported JSON Schema rules, and a required `tool` role replay pattern after execution.
What we verified on June 29, 2026
- DeepSeek's official Tool Calls guide now documents a full OpenAI-compatible function-calling contract for chat completions, including
toolsdefinitions andtool_callsoutput in assistant responses. - The same page adds a stricter beta path: you can set
strict: trueon a function schema for more precise argument matching, but the docs mark that mode as Beta and require the Beta base URL. - DeepSeek publishes a concrete schema support boundary for strict mode: supported types are string, number, integer, boolean, object, array, enum, and
anyOf. - The same strict-mode note also lists unsupported schema features such as
minLength,maxLength,pattern,format,minimum,maximum,multipleOf,patternProperties, and array bounds likeminItemsandmaxItems. - The replay contract after execution is concrete: callers should append the assistant message that contains the tool call, then append a
toolrole message with the returned result before asking the model for the next turn.
Sources
- DeepSeek English homepage
- DeepSeek official Tool Calls guide
- DeepSeek official Chat Prefix Completion (Beta) guide
- DeepSeek official FIM Completion (Beta) guide
- DeepSeek official change log
- DeepSeek official status page
- DeepSeek official GitHub organization
- DeepSeek official Hugging Face organization
- DeepSeek official X account surface