Class SafetySetting
Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked.
Inheritance
object
SafetySetting
Namespace: Glitch9.AIDevKit
Assembly: .dll
Syntax
public class SafetySetting
Constructors
SafetySetting()
Declaration
public SafetySetting()
SafetySetting(HarmCategory, HarmBlockThreshold)
Declaration
public SafetySetting(HarmCategory category, HarmBlockThreshold threshold)
Parameters
Type | Name | Description |
---|---|---|
HarmCategory | category | |
HarmBlockThreshold | threshold |
Properties
Category
Required. The category for this setting.
Declaration
public HarmCategory Category { get; set; }
Property Value
Type | Description |
---|---|
HarmCategory |
Threshold
Required. Controls the probability threshold at which harm is blocked.
Declaration
public HarmBlockThreshold Threshold { get; set; }
Property Value
Type | Description |
---|---|
HarmBlockThreshold |