Enum HarmBlockThreshold
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Block at and beyond a specified harm probability.
[JsonConverter(typeof(JsonStringEnumConverter<HarmBlockThreshold>))]
public enum HarmBlockThreshold
- Extension Methods
Fields
HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0Threshold is unspecified.
BLOCK_LOW_AND_ABOVE = 1Content with NEGLIGIBLE will be allowed.
BLOCK_MEDIUM_AND_ABOVE = 2Content with NEGLIGIBLE and LOW will be allowed.
BLOCK_ONLY_HIGH = 3Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed.
BLOCK_NONE = 4All content will be allowed.
OFF = 5Turn off the safety filter.