Class SafetySetting
Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked.
[Serializable]
public class SafetySetting
- Inheritance
-
objectSafetySetting
Fields
Category
Required. The category for this setting.
public HarmCategory Category
Field Value
Threshold
Required. Controls the probability threshold at which harm is blocked.
public HarmBlockThreshold Threshold