SafetySetting

constructor(harmCategory: HarmCategory, threshold: HarmBlockThreshold, method: HarmBlockMethod? = null)(source)

Parameters

harmCategory

The relevant HarmCategory.

threshold

The threshold form harm allowable.

method

Specify if the threshold is used for probability or severity score, if not specified it will default to HarmBlockMethod.PROBABILITY.