Class ModelSafety (0.3.0)

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

Model safety settings overrides. When this is set, it will override the default settings and trigger the guardrail if the response is considered unsafe.

Attribute

Name Description
safety_settings MutableSequence[google.cloud.ces_v1beta.types.Guardrail.ModelSafety.SafetySetting]
Required. List of safety settings.

Classes

HarmBlockThreshold

HarmBlockThreshold(value)

Probability based thresholds levels for blocking.

HarmCategory

HarmCategory(value)

Harm category.

SafetySetting

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

Safety setting.