model: model name
The following models support Toolcall requests:- step-3.7-flash
- step-3.5-flash
- step-3.5-flash-2603
Official tools
StepFun provides these built-in tools; configure them to enable the capability directly:- Web search: call a search engine to fetch the latest information.
- Knowledge base search: upload text to a knowledge base and search it to reduce hallucinations.
tools: list of functions
Usetools to describe the functions available locally. Up to 128 tools are allowed. Each entry has type function and contains a function object with the name, description, and parameters.
name: letters, numbers,-,_; ideally under 64 characters. Use a clear English name so the model understands it (regex guideline:^[a-zA-Z*][a-zA-Z0-9-_]63$).parameters: roottypemust beobject. The content follows a subset of JSON Schema; keys follow the same naming rule. See JSON Schema for supportedtypevalues.descriptionexplains each parameter.description: explains what the function does so the model can choose it; English or Chinese is supported.
messages: conversation context
See Chat Completion request object.Examples
- python
- js
- curl