CitedSource

A reference to a source of information.

JSON representation
{
  "title": string,
  "uri": string,
  "snippet": {
    object (Snippet)
  },
  "footer": {
    object (Footer)
  }
}
Fields
title

string

Required. The plaintext title of the CitedSource. Does not support markdown format.

uri

string

Required. The URI pointing to the resource referenced by this CitedSource.

snippet

object (Snippet)

Optional. Snippet containing information directly from the source.

footer

object (Footer)

Optional. Additional information to show alongside the snippet in the form of a footer.

Snippet

A snippet object representing an excerpt from a larger corpus.

JSON representation
{
  "text": string,
  "imagePreview": {
    object (ElementsImage)
  }
}
Fields
text

string

Optional. A short plaintext excerpt directly from the corpus that is rendered in the citation hover card or source preview. When footer sources are automatically populated from inline citations (because Elements.cited_sources is not set), snippets are omitted from the deduplicated footer sources. Does not support markdown format, and must not exceed 1,000 characters.

imagePreview

object (ElementsImage)

Optional. Image preview of the snippet provided as an input when creating the citation.

ElementsImage

An object encapsulating different ways of representing an image. Currently supported representations:

  • An image fetched from a URI.

Additional representations might be supported in the future.

JSON representation
{

  "imageUri": string
}
Fields
Required. One of the supported image representations. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
imageUri

string

Required. The URI of the image. Must be a publicly accessible URI so that Chat can fetch and display it.

End of mutually exclusive fields.