Class SafetySetting (1.122.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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.