Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Named tool choice for specific function

Example Usage

import { ChatNamedToolChoice } from "@openrouter/sdk/models";

let value: ChatNamedToolChoice = {
  function: {
    name: "get_weather",
  },
  type: "function",
};

Fields

FieldTypeRequiredDescription
functionmodels.ChatNamedToolChoiceFunction:heavy_check_mark:N/A
typemodels.ChatNamedToolChoiceType:heavy_check_mark:N/A