Class SafetySetting (2.5.0)

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

Safety settings.

Attributes

Name Description
category google.cloud.retail_v2alpha.types.HarmCategory
Harm category.
threshold google.cloud.retail_v2alpha.types.SafetySetting.HarmBlockThreshold
The harm block threshold.
method google.cloud.retail_v2alpha.types.SafetySetting.HarmBlockMethod
Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.

Classes

HarmBlockMethod

HarmBlockMethod(value)

Probability vs severity.

HarmBlockThreshold

HarmBlockThreshold(value)

Probability based thresholds levels for blocking.