- [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Citations#SCHEMA_REPRESENTATION)
- [Citations.CitedChunk](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Citations#Citations.CitedChunk)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Citations#Citations.CitedChunk.SCHEMA_REPRESENTATION)
- [Citations.InlineCitation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Citations#Citations.InlineCitation)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Citations#Citations.InlineCitation.SCHEMA_REPRESENTATION)

Citations associated with the agent response.

| JSON representation |
|---|
| ``` { "citedChunks": [ { object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Citations#Citations.CitedChunk`) } ], "inlineCitations": [ { object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Citations#Citations.InlineCitation`) } ] } ``` |

| Fields ||
|---|---|
| `citedChunks[]` | ``object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Citations#Citations.CitedChunk`)`` List of cited pieces of information. |
| `inlineCitations[]` | ``object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Citations#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`. |