Table of Contents

Enum HarmBlockMethod

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Specifies if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.

[JsonConverter(typeof(JsonStringEnumConverter<HarmBlockMethod>))]
public enum HarmBlockMethod
Extension Methods

Fields

HARM_BLOCK_METHOD_UNSPECIFIED = 0

The harm block method is unspecified.

SEVERITY = 1

The harm block method uses both probability and severity scores.

PROBABILITY = 2

The harm block method uses the probability score.