# Class ModelSafety (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 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[https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/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.