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

Example Usage

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

let value: ToolAdvisor20260301 = {
  model: "Fortwo",
  name: "advisor",
  type: "advisor_20260301",
};

Fields

FieldTypeRequiredDescriptionExample
allowedCallersmodels.AnthropicAllowedCallers[]:heavy_minus_sign:N/A[
“direct”
]
cacheControlmodels.AnthropicCacheControlDirective:heavy_minus_sign:Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models.{"type": "ephemeral"}
cachingmodels.Caching:heavy_minus_sign:N/A{"type": "ephemeral"}
deferLoadingboolean:heavy_minus_sign:N/A
maxUsesnumber:heavy_minus_sign:N/A
modelstring:heavy_check_mark:N/A
namemodels.NameAdvisor:heavy_check_mark:N/A
typemodels.TypeAdvisor20260301:heavy_check_mark:N/A