Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Tool call made by the assistant

Example Usage

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

let value: ChatToolCall = {
  function: {
    arguments: "{\"location\": \"Boston, MA\"}",
    name: "get_current_weather",
  },
  id: "call_abc123",
  type: "function",
};

Fields

FieldTypeRequiredDescription
functionmodels.ChatToolCallFunction:heavy_check_mark:N/A
idstring:heavy_check_mark:Tool call identifier
typemodels.ChatToolCallType:heavy_check_mark:N/A