HarmBlockThreshold Enumeration

Block at and beyond a specified harm probability.

Definition

Namespace: GenerativeAI.Types
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public enum HarmBlockThreshold

Members

HARM_BLOCK_THRESHOLD_UNSPECIFIED0 Threshold is unspecified.
BLOCK_LOW_AND_ABOVE1 Content with NEGLIGIBLE will be allowed.
BLOCK_MEDIUM_AND_ABOVE2 Content with NEGLIGIBLE and LOW will be allowed.
BLOCK_ONLY_HIGH3 Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed.
BLOCK_NONE4 All content will be allowed.
OFF5 Turn off the safety filter.

See Also