> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ToolChoiceSupport

Per-variant `tool_choice` support. `tool_choice` in `supported_parameters` only says the parameter is accepted; these flags say which of its values passed testing.

## Example Usage

```typescript theme={null}
import { ToolChoiceSupport } from "@openrouter/sdk/models";

let value: ToolChoiceSupport = {
  auto: true,
  function: true,
  none: true,
  required: true,
};
```

## Fields

| Field | Type | Required | Description |
| - | - | - | - |
| `auto` | *boolean* | ✔️ | Whether the endpoint supports `"tool_choice": "auto"`. |
| `function` | *boolean* | ✔️ | Whether the endpoint supports naming a function, `"tool_choice": {"type": "function", ...}`. |
| `none` | *boolean* | ✔️ | Whether the endpoint supports `"tool_choice": "none"`. |
| `required` | *boolean* | ✔️ | Whether the endpoint supports `"tool_choice": "required"`. |
