ToolChoiceAllowed - TypeScript SDK
ToolChoiceAllowed type definition
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ToolChoiceAllowed type definition
import { ToolChoiceAllowed } from "@openrouter/sdk/models";
let value: ToolChoiceAllowed = {
mode: "auto",
tools: [
{
"name": "get_weather",
"type": "function",
},
],
type: "allowed_tools",
};
| Field | Type | Required | Description |
|---|---|---|---|
mode | models.Mode | :heavy_check_mark: | N/A |
tools | Record<string, *any*>[] | :heavy_check_mark: | N/A |
type | models.ToolChoiceAllowedType | :heavy_check_mark: | N/A |