The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { AnthropicCitationContentBlockLocationParam } from "@openrouter/sdk/models";
let value: AnthropicCitationContentBlockLocationParam = {
citedText: "Example cited text",
documentIndex: 0,
documentTitle: null,
endBlockIndex: 1,
startBlockIndex: 0,
type: "content_block_location",
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
citedText | string | :heavy_check_mark: | N/A |
documentIndex | number | :heavy_check_mark: | N/A |
documentTitle | string | :heavy_check_mark: | N/A |
endBlockIndex | number | :heavy_check_mark: | N/A |
startBlockIndex | number | :heavy_check_mark: | N/A |
type | ”content_block_location” | :heavy_check_mark: | N/A |