# 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

Candidate
Link copied to clipboard
constructor(content: Content, finishReason: FinishReason? = null, finishMessage: String? = null, citationMetadata: CitationMetadata? = null, groundingMetadata: GroundingMetadata? = null)

## Properties

citationMetadata
Link copied to clipboard
val citationMetadata: CitationMetadata? = null

The citation metadata associated with the candidate.

content
Link copied to clipboard
val content: Content

The content of the candidate.

finishMessage
Link copied to clipboard
val finishMessage: String? = null

The message associated with the finish reason.

finishReason
Link copied to clipboard
val finishReason: FinishReason? = null

The reason why the model stopped generating content.

groundingMetadata
Link copied to clipboard
val groundingMetadata: GroundingMetadata? = null

The grounding metadata associated with the candidate.