generative-ai-python

google.generativeai.protos.GenerateContentResponse.PromptFeedback

A set of the feedback metadata the prompt specified in GenerateContentRequest.content.

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

Child Classes

class BlockReason