Citation information for model-generated content.
| JSON representation |
|---|
{ "startIndex": integer, "endIndex": integer, // Union field |
| Fields | |
|---|---|
startIndex |
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes. |
endIndex |
End of the attributed segment, exclusive. |
Union field type. The type of annotation. type can be only one of the following: |
|
urlCitation |
NOTE: We use these instead of the Citation message for historical reasons. A URL citation annotation. |
fileCitation |
A file citation annotation. |
placeCitation |
A place citation annotation. |
wordInfo |
word-level ASR annotation with timing and speaker info. |
UrlCitation
A URL citation annotation.
| JSON representation |
|---|
{ "url": string, "title": string } |
| Fields | |
|---|---|
url |
The URL. |
title |
The title of the URL. |
FileCitation
A file citation annotation.
| JSON representation |
|---|
{
"documentUri": string,
"fileName": string,
"source": string,
"customMetadata": {
object ( |
| Fields | |
|---|---|
documentUri |
The URI of the file. |
fileName |
The name of the file. |
source |
Source attributed for a portion of the text. |
customMetadata |
user provided metadata about the retrieved context. |
pageNumber |
Page number of the cited document, if applicable. |
mediaId |
Media id in-case of image citations, if applicable. |
PlaceCitation
A place citation annotation.
| JSON representation |
|---|
{
"placeId": string,
"name": string,
"url": string,
"reviewSnippets": [
{
object ( |
| Fields | |
|---|---|
placeId |
The id of the place, in |
name |
title of the place. |
url |
URI reference of the place. |
reviewSnippets[] |
Snippets of reviews that are used to generate answers about the features of a given place in Google Maps. |
WordInfo
word-level ASR annotation for transcription output. Carries the word text, optional timing, and optional speaker attribution.
| JSON representation |
|---|
{ "text": string, "startOffset": string, "endOffset": string, "speaker": string } |
| Fields | |
|---|---|
text |
The transcribed word. |
startOffset |
Start offset in time of the word relative to the start of the audio. Present when timestampGranularities contains "word". A duration in seconds with up to nine fractional digits, ending with ' |
endOffset |
End offset in time of the word relative to the start of the audio. Present when timestampGranularities contains "word". A duration in seconds with up to nine fractional digits, ending with ' |
speaker |
Optional. Speaker label for this word (e.g. "spk_1", "spk_2"). Present when diarizationMode is set in TranscriptionConfig. |