> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://openrouter.ai/docs/llms.txt.
> For full documentation content, see https://openrouter.ai/docs/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://openrouter.ai/docs/_mcp/server.

# ChatToolChoice - Python SDK

The Python SDK and docs are currently in beta.
Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).

Tool choice configuration

## Supported Types

### `components.ChatToolChoiceNone`

```python
value: components.ChatToolChoiceNone = /* values here */
```

### `components.ChatToolChoiceAuto`

```python
value: components.ChatToolChoiceAuto = /* values here */
```

### `components.ChatToolChoiceRequired`

```python
value: components.ChatToolChoiceRequired = /* values here */
```

### `components.ChatNamedToolChoice`

```python
value: components.ChatNamedToolChoice = /* values here */
```

### `components.ChatServerToolChoice`

```python
value: components.ChatServerToolChoice = /* values here */
```