CitationLocation

sealed class 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

Link copied to clipboard

The character-level location within the document where the cited content is found.

Link copied to clipboard

The chunk-level location within the document where the cited content is found, typically used for documents that have been segmented into logical chunks.

Link copied to clipboard

The page-level location within the document where the cited content is found.

Link copied to clipboard
Link copied to clipboard
data class Web(val value: WebLocation) : CitationLocation

The web URL that was cited for this reference.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard

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.