Candidate

class Candidate


A Candidate represents a single response generated by the model for a given request.

Summary

Public properties

CitationMetadata?

Metadata about the sources used to generate this content.

Content

The actual content generated by the model.

FinishReason?

The reason the model stopped generating content, if it exist.

List<SafetyRating>

A list of SafetyRatings describing the generated content.

Public properties

citationMetadata

val citationMetadata: CitationMetadata?

Metadata about the sources used to generate this content.

content

val content: Content

The actual content generated by the model.

finishReason

val finishReason: FinishReason?

The reason the model stopped generating content, if it exist.

safetyRatings

val safetyRatings: List<SafetyRating>

A list of SafetyRatings describing the generated content.