Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

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

let value: ChatMessageToolCall = {
  id: "<id>",
  type: "function",
  function: {
    name: "<value>",
    arguments: "<value>",
  },
};

Fields

FieldTypeRequiredDescription
idstring:heavy_check_mark:N/A
type”function”:heavy_check_mark:N/A
functionmodels.ChatMessageToolCallFunction:heavy_check_mark:N/A