Tool - TypeScript SDK

Tool type definition

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

Example Usage

1import { Tool } from "@openrouter/sdk/models";
2
3let value: Tool = {
4 type: "function",
5 function: {
6 name: "<value>",
7 },
8};

Fields

FieldTypeRequiredDescription
typestring✔️N/A
functionmodels.ToolFunction✔️N/A