Safety setting, affecting the safety-blocking behavior.
Passing a safety setting for a category changes the allowed proability that content is blocked.
JSON representation |
---|
{ "category": enum ( |
Fields | |
---|---|
category |
Required. The category for this setting. |
threshold |
Required. Controls the probability threshold at which harm is blocked. |
HarmBlockThreshold
Block at and beyond a specified harm probability.
Enums | |
---|---|
HARM_BLOCK_THRESHOLD_UNSPECIFIED |
Threshold is unspecified. |
BLOCK_LOW_AND_ABOVE |
Content with NEGLIGIBLE will be allowed. |
BLOCK_MEDIUM_AND_ABOVE |
Content with NEGLIGIBLE and LOW will be allowed. |
BLOCK_ONLY_HIGH |
Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed. |
BLOCK_NONE |
All content will be allowed. |