Citation
class 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.
Summary
Public properties |
|
|---|---|
Int |
The (exclusive) ending index within the model output where the cited content ends. |
String? |
The license under which the cited content is distributed under, if available. |
Calendar? |
The date of publication of the cited source, if available. |
Int |
The (inclusive) starting index within the model output where the cited content begins. |
String? |
The title of the cited source, if available. |
String? |
The URI of the cited source, if available. |
Public properties
endIndex
val endIndex: Int
The (exclusive) ending index within the model output where the cited content ends.
license
val license: String?
The license under which the cited content is distributed under, if available.
publicationDate
val publicationDate: Calendar?
The date of publication of the cited source, if available.
startIndex
val startIndex: Int
The (inclusive) starting index within the model output where the cited content begins.