AnthropicSearchResultBlockParam - TypeScript SDK

AnthropicSearchResultBlockParam type definition

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

Example Usage

1import { AnthropicSearchResultBlockParam } from "@openrouter/sdk/models";
2
3let value: AnthropicSearchResultBlockParam = {
4 content: [
5 {
6 text: "Result content",
7 type: "text",
8 },
9 ],
10 source: "example_source",
11 title: "Example Result",
12 type: "search_result",
13};

Fields

FieldTypeRequiredDescriptionExample
cacheControlmodels.AnthropicCacheControlDirectiveEnable 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"}
citationsmodels.AnthropicSearchResultBlockParamCitationsN/A
contentmodels.AnthropicTextBlockParam[]✔️N/A
sourcestring✔️N/A
titlestring✔️N/A
type”search_result”✔️N/A