The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { AnthropicCitationWebSearchResultLocation } from "@openrouter/sdk/models";
let value: AnthropicCitationWebSearchResultLocation = {
citedText: "Example cited text",
encryptedIndex: "enc_idx_0",
title: "Example Page",
type: "web_search_result_location",
url: "https://example.com",
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
citedText | string | :heavy_check_mark: | N/A |
encryptedIndex | string | :heavy_check_mark: | N/A |
title | string | :heavy_check_mark: | N/A |
type | ”web_search_result_location” | :heavy_check_mark: | N/A |
url | string | :heavy_check_mark: | N/A |