Candidate
data class Candidate(val content: Content, val finishReason: FinishReason? = null, val finishMessage: String? = null, val citationMetadata: CitationMetadata? = null, val groundingMetadata: GroundingMetadata? = null)
Represents a possible response from the model.
Constructors
Link copied to clipboard
constructor(content: Content, finishReason: FinishReason? = null, finishMessage: String? = null, citationMetadata: CitationMetadata? = null, groundingMetadata: GroundingMetadata? = null)
Properties
Link copied to clipboard
The citation metadata associated with the candidate.
Link copied to clipboard
The message associated with the finish reason.
Link copied to clipboard
The reason why the model stopped generating content.
Link copied to clipboard
The grounding metadata associated with the candidate.