Class SafetyRating (1.43.0)

SafetyRating(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Safety rating corresponding to the generated content.

Attributes

Name Description
category google.cloud.aiplatform_v1beta1.types.HarmCategory
Output only. Harm category.
probability google.cloud.aiplatform_v1beta1.types.SafetyRating.HarmProbability
Output only. Harm probability levels in the content.
blocked bool
Output only. Indicates whether the content was filtered out because of this rating.

Classes

HarmProbability

HarmProbability(value)

Harm probability levels in the content.

Values: HARM_PROBABILITY_UNSPECIFIED (0): Harm probability unspecified. NEGLIGIBLE (1): Negligible level of harm. LOW (2): Low level of harm. MEDIUM (3): Medium level of harm. HIGH (4): High level of harm.

Methods

SafetyRating

SafetyRating(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Safety rating corresponding to the generated content.