Search Results for

    Show / Hide Table of Contents

    Class SafetyRating

    A safety rating associated with a {@link GenerateContentCandidate}

    Inheritance
    object
    SafetyRating
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public class SafetyRating

    Constructors

    | Edit this page View Source

    SafetyRating(HarmCategory, float, bool)

    Declaration
    public SafetyRating(HarmCategory category, float score, bool flagged)
    Parameters
    Type Name Description
    HarmCategory category
    float score
    bool flagged

    Properties

    | Edit this page View Source

    Category

    Declaration
    [JsonProperty("category")]
    public HarmCategory Category { get; set; }
    Property Value
    Type Description
    HarmCategory
    | Edit this page View Source

    IsFlagged

    Declaration
    [JsonIgnore]
    public bool IsFlagged { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Probability

    Declaration
    [JsonProperty("probability")]
    public HarmProbability Probability { get; set; }
    Property Value
    Type Description
    HarmProbability
    | Edit this page View Source

    Score

    Declaration
    [JsonIgnore]
    public float Score { get; }
    Property Value
    Type Description
    float

    Methods

    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    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