Files
openrouter-python-sdk-retry…/docs/components/toolchoiceallowed.mdx
T

14 lines
1.6 KiB
Plaintext

---
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 |