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.
The search result location where the cited content is found, including the search result index and block positions within the content array.
The web URL that was cited for this reference.
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.
Casts this CitationLocation as a SearchResultLocation and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.SearchResultLocation value. Throws an exception if the CitationLocation is not a SearchResultLocation.
Casts this CitationLocation as a SearchResultLocation and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.SearchResultLocation value. Returns null if the CitationLocation is not a SearchResultLocation.
Casts this CitationLocation as a Web and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.WebLocation value. Throws an exception if the CitationLocation is not a Web.
Casts this CitationLocation as a Web and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.WebLocation value. Returns null if the CitationLocation is not a Web.