struct Gemini::GenerateContentResponse::PromptFeedback
- Gemini::GenerateContentResponse::PromptFeedback
- Struct
- Value
- Object
Overview
A set of the feedback metadata the prompt specified in Gemini::Content
.
Included Modules
- JSON::Serializable
Defined in:
gemini/response.crConstructors
Instance Method Summary
-
#block_reason : BlockReason | Nil
If set, the prompt was blocked and no candidates are returned.
-
#safety_ratings : Array(SafetyRating)
Ratings for safety of the prompt.
Constructor Detail
Instance Method Detail
def block_reason : BlockReason | Nil
#
If set, the prompt was blocked and no candidates are returned. (Optional)
def safety_ratings : Array(SafetyRating)
#
Ratings for safety of the prompt. There is at most one rating per category.