Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Constrains the model to a pre-defined set of allowed tools

Example Usage

Fields

FieldTypeRequiredDescription
modemodels.Mode:heavy_check_mark:N/A
toolsRecord<string, *any*>[]:heavy_check_mark:N/A
typemodels.ToolChoiceAllowedType:heavy_check_mark:N/A