> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ChatFunctionTool - Python SDK

> ChatFunctionTool method reference

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

Tool definition for function calling (regular function or OpenRouter built-in server tool)

## Supported Types

### `components.ChatFunctionToolFunction`

```python lines theme={null}
value: components.ChatFunctionToolFunction = /* values here */
```

### `components.DatetimeServerTool`

```python lines theme={null}
value: components.DatetimeServerTool = /* values here */
```

### `components.ImageGenerationServerToolOpenRouter`

```python lines theme={null}
value: components.ImageGenerationServerToolOpenRouter = /* values here */
```

### `components.ChatSearchModelsServerTool`

```python lines theme={null}
value: components.ChatSearchModelsServerTool = /* values here */
```

### `components.WebFetchServerTool`

```python lines theme={null}
value: components.WebFetchServerTool = /* values here */
```

### `components.OpenRouterWebSearchServerTool`

```python lines theme={null}
value: components.OpenRouterWebSearchServerTool = /* values here */
```

### `components.ChatWebSearchShorthand`

```python lines theme={null}
value: components.ChatWebSearchShorthand = /* values here */
```

### `components.ChatWebSearchShorthand`

```python lines theme={null}
value: components.ChatWebSearchShorthand = /* values here */
```

### `components.ChatWebSearchShorthand`

```python lines theme={null}
value: components.ChatWebSearchShorthand = /* values here */
```

### `components.ChatWebSearchShorthand`

```python lines theme={null}
value: components.ChatWebSearchShorthand = /* values here */
```
