Class SafetySetting (1.52.0)

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

Safety settings.

Attributes

Name Description
category google.cloud.aiplatform_v1.types.HarmCategory
Required. Harm category.
threshold google.cloud.aiplatform_v1.types.SafetySetting.HarmBlockThreshold
Required. The harm block threshold.
method google.cloud.aiplatform_v1.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.

Methods

SafetySetting

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

Safety settings.