Skip to content

Latest commit

 

History

History
82 lines (51 loc) · 1.5 KB

File metadata and controls

82 lines (51 loc) · 1.5 KB

google.generativeai.protos.SafetyRating

View source on GitHub

Safety rating for a piece of content.

The safety rating contains the category of harm and the harm probability level in that category for a piece of content. Content is classified for safety across a number of harm categories and the probability of the harm classification is included here.

Attributes

category

google.ai.generativelanguage.HarmCategory

Required. The category for this rating.

probability

google.ai.generativelanguage.SafetyRating.HarmProbability

Required. The probability of harm for this content.

blocked

bool

Was this content blocked because of this rating?

Child Classes

class HarmProbability