Candidate

public final class Candidate

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

Summary

Public fields

final CitationMetadata

Metadata about the sources used to generate this content.

final @NonNull Content

The actual content generated by the model.

final FinishReason

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

final @NonNull List<@NonNull SafetyRating>

A list of SafetyRatings describing the generated content.

Public fields

citationMetadata

public final CitationMetadata citationMetadata

Metadata about the sources used to generate this content.

content

public final @NonNull Content content

The actual content generated by the model.

finishReason

public final FinishReason finishReason

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

safetyRatings

public final @NonNull List<@NonNull SafetyRatingsafetyRatings

A list of SafetyRatings describing the generated content.