CitationMetadata

A collection of source attributions for a piece of content.

JSON representation
{
  "citationSources": [
    {
      object (CitationSource)
    }
  ]
}
Fields
citationSources[]

object (CitationSource)

Citations to sources for a specific response.

CitationSource

A citation to a source for a portion of a specific response.

JSON representation
{
  "startIndex": integer,
  "endIndex": integer,
  "uri": string,
  "license": string
}
Fields
startIndex

integer

Optional. Start of segment of the response that is attributed to this source.

Index indicates the start of the segment, measured in bytes.

endIndex

integer

Optional. End of the attributed segment, exclusive.

uri

string

Optional. URI that is attributed as a source for a portion of the text.

license

string

Optional. License for the GitHub project that is attributed as a source for segment.

License info is required for code citations.