Table of Contents

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 = 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.

OFF = 5

Turn off the safety filter.

See Also