The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { ChatNamedToolChoiceFunction } from "@openrouter/sdk/models";
let value: ChatNamedToolChoiceFunction = {
name: "get_weather",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
name | string | :heavy_check_mark: | Function name to call | get_weather |