2.0.0 (latest) 1.159.0 1.158.0 1.157.0 1.156.0 1.155.0 1.154.0

    SafetySetting(
        *,
        category: google.cloud.aiplatform_v1beta1.types.content.HarmCategory,
        threshold: google.cloud.aiplatform_v1beta1.types.content.SafetySetting.HarmBlockThreshold,
        method: typing.Optional[
            google.cloud.aiplatform_v1beta1.types.content.SafetySetting.HarmBlockMethod
        ] = None
    )

Parameters for the generation.

## Classes

### HarmBlockMethod

    HarmBlockMethod(value)

Probability vs severity.

### HarmBlockThreshold

    HarmBlockThreshold(value)

Probability based thresholds levels for blocking.

### HarmCategory

    HarmCategory(value)

Harm categories that will block the content.

## Methods

### SafetySetting

    SafetySetting(
        *,
        category: google.cloud.aiplatform_v1beta1.types.content.HarmCategory,
        threshold: google.cloud.aiplatform_v1beta1.types.content.SafetySetting.HarmBlockThreshold,
        method: typing.Optional[
            google.cloud.aiplatform_v1beta1.types.content.SafetySetting.HarmBlockMethod
        ] = None
    )

Safety settings.