The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { NamedToolChoice } from "@openrouter/sdk/models";
let value: NamedToolChoice = {
type: "function",
function: {
name: "<value>",
},
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
type | ”function” | :heavy_check_mark: | N/A |
function | models.NamedToolChoiceFunction | :heavy_check_mark: | N/A |