Citation - TypeScript SDK
Citation type definition
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Citation type definition
models.AnthropicCitationCharLocationParamconst value: models.AnthropicCitationCharLocationParam = {
citedText: "Example cited text",
documentIndex: 0,
documentTitle: null,
endCharIndex: 18,
startCharIndex: 0,
type: "char_location",
};
models.AnthropicCitationContentBlockLocationParamconst value: models.AnthropicCitationContentBlockLocationParam = {
citedText: "Example cited text",
documentIndex: 0,
documentTitle: null,
endBlockIndex: 1,
startBlockIndex: 0,
type: "content_block_location",
};
models.AnthropicCitationPageLocationParamconst value: models.AnthropicCitationPageLocationParam = {
citedText: "Example cited text",
documentIndex: 0,
documentTitle: null,
endPageNumber: 2,
startPageNumber: 1,
type: "page_location",
};
models.AnthropicCitationSearchResultLocationconst value: models.AnthropicCitationSearchResultLocation = {
citedText: "Example cited text",
endBlockIndex: 1,
searchResultIndex: 0,
source: "example_source",
startBlockIndex: 0,
title: "Example Result",
type: "search_result_location",
};
models.AnthropicCitationWebSearchResultLocationconst value: models.AnthropicCitationWebSearchResultLocation = {
citedText: "Example cited text",
encryptedIndex: "enc_idx_0",
title: "Example Page",
type: "web_search_result_location",
url: "https://example.com",
};