HarmBlockMethod

class HarmBlockMethod


Specifies how the block method computes the score that will be compared against the HarmBlockThreshold in SafetySetting.

Summary

Public companion properties

HarmBlockMethod

The harm block method uses the probability score.

HarmBlockMethod

The harm block method uses both probability and severity scores.

Public properties

Int

Public companion properties

PROBABILITY

val PROBABILITYHarmBlockMethod

The harm block method uses the probability score. See HarmProbability.

SEVERITY

val SEVERITYHarmBlockMethod

The harm block method uses both probability and severity scores. See HarmSeverity and HarmProbability.

Public properties

ordinal

val ordinalInt