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

Example Usage

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

let value: ToolResponseMessage = {
  role: "tool",
  content: [],
  toolCallId: "<id>",
};

Fields

FieldTypeRequiredDescription
role”tool”:heavy_check_mark:N/A
contentmodels.ToolResponseMessageContent:heavy_check_mark:N/A
toolCallIdstring:heavy_check_mark:N/A