GenerateContentCandidate interface

A candidate returned as part of a GenerateContentResponse.

Signature:

export interface GenerateContentCandidate 

Properties

Property Type Description
citationMetadata CitationMetadata
content Content
finishMessage string
finishReason FinishReason
groundingMetadata GroundingMetadata
index number
safetyRatings SafetyRating[]

GenerateContentCandidate.citationMetadata

Signature:

citationMetadata?: CitationMetadata;

GenerateContentCandidate.content

Signature:

content: Content;

GenerateContentCandidate.finishMessage

Signature:

finishMessage?: string;

GenerateContentCandidate.finishReason

Signature:

finishReason?: FinishReason;

GenerateContentCandidate.groundingMetadata

Signature:

groundingMetadata?: GroundingMetadata;

GenerateContentCandidate.index

Signature:

index: number;

GenerateContentCandidate.safetyRatings

Signature:

safetyRatings?: SafetyRating[];