Citations are inline references that can provide users more detailed information about the inline reference. Corresponding inline citations should be present in the message text in a markup format of <chat-citation data-id="{id}">{text}</chat-citation>. Citations are only supported when the message's markupSyntax is set to MARKDOWN.
Unreferenced citations in Elements.citations (those without a matching <chat-citation> tag in the message text) are ignored and do not cause the message to be rejected.
| JSON representation |
|---|
{
"id": string,
"citedSources": [
{
object ( |
| Fields | |
|---|---|
id |
Required. The ID of the citation. This ID is defined by the app creating the citation and must match the |
citedSources[] |
Optional. A list of sources that are relevant to the citation. Sources are displayed in the citation hover card. |