mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
14 lines
1.6 KiB
Plaintext
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 | |