CitationLocation
Specifies the precise location within a source document where cited content can be found. This can include character-level positions, page numbers, or document chunks depending on the document type and indexing method.
Inheritors
Types
The character-level location within the document where the cited content is found.
The chunk-level location within the document where the cited content is found, typically used for documents that have been segmented into logical chunks.
The page-level location within the document where the cited content is found.
Functions
Casts this CitationLocation as a DocumentChar and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.DocumentCharLocation value. Throws an exception if the CitationLocation is not a DocumentChar.
Casts this CitationLocation as a DocumentChar and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.DocumentCharLocation value. Returns null if the CitationLocation is not a DocumentChar.
Casts this CitationLocation as a DocumentChunk and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.DocumentChunkLocation value. Throws an exception if the CitationLocation is not a DocumentChunk.
Casts this CitationLocation as a DocumentChunk and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.DocumentChunkLocation value. Returns null if the CitationLocation is not a DocumentChunk.
Casts this CitationLocation as a DocumentPage and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.DocumentPageLocation value. Throws an exception if the CitationLocation is not a DocumentPage.
Casts this CitationLocation as a DocumentPage and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.DocumentPageLocation value. Returns null if the CitationLocation is not a DocumentPage.