Citation

data class Citation(val citedText: String, val documentIndex: Int, val documentTitle: String? = null, val endCharIndex: Int, val startCharIndex: Int, val type: String = "char_location")(source)

Citation for referenced content in the system prompt.

Constructors

Link copied to clipboard
constructor(citedText: String, documentIndex: Int, documentTitle: String? = null, endCharIndex: Int, startCharIndex: Int, type: String = "char_location")

Properties

Link copied to clipboard
@SerialName(value = "cited_text")
val citedText: String

The text being cited.

Link copied to clipboard
@SerialName(value = "document_index")
val documentIndex: Int

Index of the document being cited.

Link copied to clipboard
@SerialName(value = "document_title")
val documentTitle: String?

Optional title of the document being cited.

Link copied to clipboard
@SerialName(value = "end_char_index")
val endCharIndex: Int

End character index in the original text.

Link copied to clipboard
@SerialName(value = "start_char_index")
val startCharIndex: Int

Start character index in the original text.

Link copied to clipboard

Type of citation. Always "char_location".