Search Results for

    Show / Hide Table of Contents

    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
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    [Serializable]
    public class SafetySetting

    Fields

    | Edit this page View Source

    Category

    Required. The category for this setting.

    Declaration
    [SerializeField]
    [JsonProperty("category")]
    public HarmCategory Category
    Field Value
    Type Description
    HarmCategory
    | Edit this page View Source

    Threshold

    Required. Controls the probability threshold at which harm is blocked.

    Declaration
    [SerializeField]
    [JsonProperty("threshold")]
    public HarmBlockThreshold Threshold
    Field Value
    Type Description
    HarmBlockThreshold

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation