LaunchDarkly Dotnet Server AI SDK
Search Results for

    Show / Hide Table of Contents

    Struct Usage

    Represents token usage.

    Implements
    IEquatable<Usage>
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: LaunchDarkly.Sdk.Server.Ai.Tracking
    Assembly: LaunchDarkly.ServerSdk.Ai.dll
    Syntax
    public record struct Usage : IEquatable<Usage>

    Constructors

    | Edit this page View Source

    Usage(int?, int?, int?)

    Represents token usage.

    Declaration
    public Usage(int? Total, int? Input, int? Output)
    Parameters
    Type Name Description
    int? Total

    the total tokens used

    int? Input

    the tokens sent as input

    int? Output

    the tokens received as output

    Properties

    | Edit this page View Source

    Input

    the tokens sent as input

    Declaration
    public int? Input { readonly get; set; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    Output

    the tokens received as output

    Declaration
    public int? Output { readonly get; set; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    Total

    the total tokens used

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

    Implements

    IEquatable<T>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX