Firebase.AI.Candidate

A struct representing a possible reply to a content generation prompt.

Summary

Each content generation prompt may produce multiple candidate responses.

Properties

CitationMetadata
Cited works in the model’s response content, if it exists.
Content
The response’s content.
FinishReason
The reason the model stopped generating content, if it exists; for example, if the model generated a predefined stop sequence.
SafetyRatings
IEnumerable< SafetyRating >
The safety rating of the response content.

Properties

CitationMetadata

CitationMetadata Firebase::AI::Candidate::CitationMetadata

Cited works in the model’s response content, if it exists.

Content

ModelContent Firebase::AI::Candidate::Content

The response’s content.

FinishReason

FinishReason Firebase::AI::Candidate::FinishReason

The reason the model stopped generating content, if it exists; for example, if the model generated a predefined stop sequence.

SafetyRatings

IEnumerable< SafetyRating > Firebase::AI::Candidate::SafetyRatings

The safety rating of the response content.