AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class Usage

    Usage statistics for the completion request.

    Inheritance
    object
    Usage
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    [Serializable]
    public class Usage

    Constructors

    Usage()

    Declaration
    public Usage()

    Usage(UsageType, int)

    Declaration
    public Usage(UsageType type, int count)
    Parameters
    Type Name Description
    UsageType type
    int count

    Fields

    usages

    Declaration
    public ReferencedDictionary<UsageType, int> usages
    Field Value
    Type Description
    ReferencedDictionary<UsageType, int>

    Properties

    InputTokens

    Number of tokens in the prompt.

    Declaration
    public int? InputTokens { get; set; }
    Property Value
    Type Description
    int?

    IsEmpty

    Declaration
    public bool IsEmpty { get; }
    Property Value
    Type Description
    bool

    IsFree

    Declaration
    public bool IsFree { get; }
    Property Value
    Type Description
    bool

    OutputTokens

    Number of tokens in the generated completion.

    Declaration
    public int? OutputTokens { get; set; }
    Property Value
    Type Description
    int?

    Methods

    Empty()

    Declaration
    public static Usage Empty()
    Returns
    Type Description
    Usage

    Free()

    Declaration
    public static Usage Free()
    Returns
    Type Description
    Usage

    PerCharacter(double)

    Declaration
    public static Usage PerCharacter(double cost)
    Parameters
    Type Name Description
    double cost
    Returns
    Type Description
    Usage

    PerMinute(double)

    Declaration
    public static Usage PerMinute(double cost)
    Parameters
    Type Name Description
    double cost
    Returns
    Type Description
    Usage

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()

    Extension Methods

    UsageExtensions.Add(Usage, int, int)
    UsageExtensions.Merge(Usage, Usage)
    In this article
    Back to top Generated by DocFX