ChatNamedToolChoiceFunction - TypeScript SDK

ChatNamedToolChoiceFunction type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

1import { ChatNamedToolChoiceFunction } from "@openrouter/sdk/models";
2
3let value: ChatNamedToolChoiceFunction = {
4 name: "get_weather",
5};

Fields

FieldTypeRequiredDescriptionExample
namestring✔️Function name to callget_weather