HarmBlockThreshold

The probability threshold at or above which content is blocked for a HarmCategory.

Entries

Link copied to clipboard

The threshold is unspecified.

Link copied to clipboard

Block content with a low probability of harm and above.

Link copied to clipboard

Block content with a medium probability of harm and above.

Link copied to clipboard

Block only content with a high probability of harm.

Link copied to clipboard

Do not block any content based on probability.

Link copied to clipboard

Turn off the safety filter for this category.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.