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

Example Usage

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

let value: AnthropicCitationCharLocationParam = {
  citedText: "Example cited text",
  documentIndex: 0,
  documentTitle: null,
  endCharIndex: 18,
  startCharIndex: 0,
  type: "char_location",
};

Fields

FieldTypeRequiredDescription
citedTextstring:heavy_check_mark:N/A
documentIndexnumber:heavy_check_mark:N/A
documentTitlestring:heavy_check_mark:N/A
endCharIndexnumber:heavy_check_mark:N/A
startCharIndexnumber:heavy_check_mark:N/A
type”char_location”:heavy_check_mark:N/A