Gemini::GenerateContentResponse::Candidate
Inherits JSON::Serializable < Struct < Value < Object
A response candidate generated from the model.
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
after_initialize
Sourcefinish_reason
The reason why the model stopped generating tokens. (Optional, Output only) If empty, the model has not stopped generating tokens.
safety_ratings
List of ratings for the safety of a response candidate. There is at most one rating per category.