Candidate

data class Candidate(val content: Content, val finishReason: String? = null, val safetyRatings: List<SafetyRating>? = null)(source)

Represents a candidate response from the model.

Constructors

Link copied to clipboard
constructor(content: Content, finishReason: String? = null, safetyRatings: List<SafetyRating>? = null)

Properties

Link copied to clipboard

The content of the candidate.

Link copied to clipboard

The reason why the model stopped generating tokens.

Link copied to clipboard

Safety ratings for the content.