Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Citation

A section of the generated response which cites the documents that were used for generating the response.

Properties

documentIds

documentIds: Array<string>

Identifiers for the documents cited in the current generated response.

end

end: number

Counting from zero, the index of the text that the citation ends after. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

start

start: number

Counting from zero, the index of the text where the citation starts. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

text

text: string

The text of the citation.

Functions

getDeserializedJsonObj

  • getDeserializedJsonObj(obj: Citation): object

getJsonObj