Files
openrouter-python-sdk-retry…/docs/models/chatcompletiontoolfunction.md
T
2025-08-22 10:31:13 -05:00

13 lines
1.7 KiB
Markdown

# ChatCompletionToolFunction
Function definition for tool calling
## Fields
| Field | Type | Required | Description |
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
| `name` | *str* | :heavy_check_mark: | Function name (a-z, A-Z, 0-9, underscores, dashes, max 64 chars) |
| `description` | *Optional[str]* | :heavy_minus_sign: | Function description for the model |
| `parameters` | [Optional[models.Parameters]](../models/parameters.md) | :heavy_minus_sign: | Function parameters as JSON Schema object |
| `strict` | *OptionalNullable[bool]* | :heavy_minus_sign: | Enable strict schema adherence |