google.generativeai.types.HarmBlockThreshold

Block at and beyond a specified harm probability.

HARM_BLOCK_THRESHOLD_UNSPECIFIED 0

Threshold is unspecified.

BLOCK_LOW_AND_ABOVE 1

Content with NEGLIGIBLE will be allowed.

BLOCK_MEDIUM_AND_ABOVE 2

Content with NEGLIGIBLE and LOW will be allowed.

BLOCK_ONLY_HIGH 3

Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed.

BLOCK_NONE 4

All content will be allowed.

BLOCK_LOW_AND_ABOVE <HarmBlockThreshold.BLOCK_LOW_AND_ABOVE: 1>
BLOCK_MEDIUM_AND_ABOVE <HarmBlockThreshold.BLOCK_MEDIUM_AND_ABOVE: 2>
BLOCK_NONE <HarmBlockThreshold.BLOCK_NONE: 4>
BLOCK_ONLY_HIGH <HarmBlockThreshold.BLOCK_ONLY_HIGH: 3>
HARM_BLOCK_THRESHOLD_UNSPECIFIED <HarmBlockThreshold.HARM_BLOCK_THRESHOLD_UNSPECIFIED: 0>