Search Results for

    Show / Hide Table of Contents

    Class SafetyIdentifier

    A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies. The IDs should be a string that uniquely identifies each user. We recommend hashing their username or email address, in order to avoid sending us any identifying information. https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers

    Inheritance
    object
    SafetyIdentifier
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    [JsonConverter(typeof(SafetyIdentifierConverter))]
    public sealed class SafetyIdentifier

    Constructors

    | Edit this page View Source

    SafetyIdentifier()

    Declaration
    public SafetyIdentifier()
    | Edit this page View Source

    SafetyIdentifier(string)

    Declaration
    public SafetyIdentifier(string value)
    Parameters
    Type Name Description
    string value

    Properties

    | Edit this page View Source

    Value

    Declaration
    public string Value { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    ToString()

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

    Operators

    | Edit this page View Source

    implicit operator string(SafetyIdentifier)

    Declaration
    public static implicit operator string(SafetyIdentifier safetyIdentifier)
    Parameters
    Type Name Description
    SafetyIdentifier safetyIdentifier
    Returns
    Type Description
    string
    | Edit this page View Source

    implicit operator SafetyIdentifier(string)

    Declaration
    public static implicit operator SafetyIdentifier(string userId)
    Parameters
    Type Name Description
    string userId
    Returns
    Type Description
    SafetyIdentifier

    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