--- title: "ToolChoiceAllowed" --- Constrains the model to a pre-defined set of allowed tools ## Fields | Field | Type | Required | Description | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | | `mode` | [components.Mode](../components/mode.mdx) | :heavy_check_mark: | N/A | | `tools` | List[Dict[str, *Nullable[Any]*]] | :heavy_check_mark: | N/A | | `type` | [components.ToolChoiceAllowedType](../components/toolchoiceallowedtype.mdx) | :heavy_check_mark: | N/A |