Citation

Represents a citation of content from an external source within the model's output.

When the language model generates text that includes content from another source, it should provide a citation to properly attribute the original source. This class encapsulates the metadata associated with that citation.

Properties

Link copied to clipboard

The (exclusive) ending index within the model output where the cited content ends.

Link copied to clipboard

The license under which the cited content is distributed under, if available.

Link copied to clipboard

The (inclusive) starting index within the model output where the cited content begins.

Link copied to clipboard

The title of the cited source, if available.

Link copied to clipboard
val uri: String?

The URI of the cited source, if available.