struct

Gemini::GenerateContentResponse::PromptFeedback

Inherits JSON::Serializable < Struct < Value < Object

A set of the feedback metadata the prompt specified in Gemini::Content.

API Reference

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

block_reason

If set, the prompt was blocked and no candidates are returned. (Optional)

Source
safety_ratings

Ratings for safety of the prompt. There is at most one rating per category.

Source