- JSON representation
- FinishReason
- GroundingAttribution
- AttributionSourceId
- GroundingPassageId
- SemanticRetrieverChunk
A response candidate generated from the model.
JSON representation |
---|
{ "content": { object ( |
Fields | |
---|---|
content |
Output only. Generated content returned from the model. |
finishReason |
Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens. |
safetyRatings[] |
List of ratings for the safety of a response candidate. There is at most one rating per category. |
citationMetadata |
Output only. Citation information for model-generated candidate. This field may be populated with recitation information for any text included in the |
tokenCount |
Output only. Token count for this candidate. |
groundingAttributions[] |
Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for |
index |
Output only. Index of the candidate in the list of candidates. |
FinishReason
Defines the reason why the model stopped generating tokens.
Enums | |
---|---|
FINISH_REASON_UNSPECIFIED |
Default value. This value is unused. |
STOP |
Natural stop point of the model or provided stop sequence. |
MAX_TOKENS |
The maximum number of tokens as specified in the request was reached. |
SAFETY |
The candidate content was flagged for safety reasons. |
RECITATION |
The candidate content was flagged for recitation reasons. |
OTHER |
Unknown reason. |
GroundingAttribution
Attribution for a source that contributed to an answer.
JSON representation |
---|
{ "sourceId": { object ( |
Fields | |
---|---|
sourceId |
Output only. Identifier for the source contributing to this attribution. |
content |
Grounding source content that makes up this attribution. |
AttributionSourceId
Identifier for the source contributing to this attribution.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
groundingPassage |
Identifier for an inline passage. |
semanticRetrieverChunk |
Identifier for a |
GroundingPassageId
Identifier for a part within a GroundingPassage
.
JSON representation |
---|
{ "passageId": string, "partIndex": integer } |
Fields | |
---|---|
passageId |
Output only. ID of the passage matching the |
partIndex |
Output only. Index of the part within the |
SemanticRetrieverChunk
Identifier for a Chunk
retrieved via Semantic Retriever specified in the GenerateAnswerRequest
using SemanticRetrieverConfig
.
JSON representation |
---|
{ "source": string, "chunk": string } |
Fields | |
---|---|
source |
Output only. Name of the source matching the request's |
chunk |
Output only. Name of the |