Citations

Citations associated with the agent response.

JSON representation
{
  "citedChunks": [
    {
      object (Citations.CitedChunk)
    }
  ],
  "inlineCitations": [
    {
      object (Citations.InlineCitation)
    }
  ]
}
Fields
citedChunks[]

object (Citations.CitedChunk)

List of cited pieces of information.

inlineCitations[]

object (Citations.InlineCitation)

Optional. List of inline citations in the agent response.

Citations.CitedChunk

Piece of cited information.

JSON representation
{
  "uri": string,
  "title": string,
  "text": string,
  "requiresAttribution": boolean
}
Fields
uri

string

URI used for citation.

title

string

Title of the cited document.

text

string

Text used for citation.

requiresAttribution

boolean

Whether this citation requires attribution to be shown to the end users.

Citations.InlineCitation

An inline citation in the response text.

JSON representation
{
  "startIndex": integer,
  "endIndex": integer,
  "citedChunkIndices": [
    integer
  ]
}
Fields
startIndex

integer

The starting index (in bytes) of the text segment in the agent response.

endIndex

integer

The ending index (in bytes) of the text segment in the agent response.

citedChunkIndices[]

integer

The indices of the cited chunks that back this text segment. Indices refer to the elements in citedChunks.