ToolWebSearch20250305 - TypeScript SDK
ToolWebSearch20250305 - TypeScript SDK
ToolWebSearch20250305 type definition
ToolWebSearch20250305 - TypeScript SDK
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
1 import { ToolWebSearch20250305 } from "@openrouter/sdk/models"; 2 3 let value: ToolWebSearch20250305 = { 4 name: "web_search", 5 type: "web_search_20250305", 6 };
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
allowedDomains | string[] | ➖ | N/A | |
blockedDomains | string[] | ➖ | N/A | |
cacheControl | models.AnthropicCacheControlDirective | ➖ | 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"} |
maxUses | number | ➖ | N/A | |
name | models.NameWebSearch1 | ✔️ | N/A | |
type | models.TypeWebSearch20250305 | ✔️ | N/A | |
userLocation | models.AnthropicWebSearchToolUserLocation | ➖ | N/A | {"city": "San Francisco","country": "US","region": "California","timezone": "America/Los_Angeles","type": "approximate"} |