SafetySetting(mapping=None, *, ignore_unknown_fields=False, **kwargs)Safety settings.
Attributes |
|
|---|---|
| Name | Description |
category |
google.cloud.discoveryengine_v1.types.HarmCategory
Required. Harm category. |
threshold |
google.cloud.discoveryengine_v1.types.AnswerQueryRequest.SafetySpec.SafetySetting.HarmBlockThreshold
Required. The harm block threshold. |
Classes
HarmBlockThreshold
HarmBlockThreshold(value)Probability based thresholds levels for blocking.