generative-ai-python

google.generativeai.protos.GenerateAnswerResponse.InputFeedback

Feedback related to the input data used to answer the question, as opposed to the model-generated response to the question.

`block_reason` `google.ai.generativelanguage.GenerateAnswerResponse.InputFeedback.BlockReason` Optional. If set, the input was blocked and no candidates are returned. Rephrase the input.
`safety_ratings` `MutableSequence[google.ai.generativelanguage.SafetyRating]` Ratings for safety of the input. There is at most one rating per category.

Child Classes

class BlockReason