Candidate
@Serializable
Represents a candidate entity with associated content and metadata.
Constructors
Link copied to clipboard
constructor(content: Content, finishReason: String, index: Int, safetyRatings: List<SafetyRating>, citationMetadata: CitationMetadata? = null, tokenCount: Int? = null, groundingAttributions: List<GroundingAttribution> = emptyList())
Properties
Link copied to clipboard
Link copied to clipboard
The io.github.ugaikit.gemini4kt.Content associated with this candidate, containing the actual content details.
Link copied to clipboard
A string describing the reason why the processing of this candidate was finished.
Link copied to clipboard
Link copied to clipboard
A list of io.github.ugaikit.gemini4kt.SafetyRating objects, each representing a safety rating assigned to this candidate's content.
Link copied to clipboard