Documentation
Table of Contents

Class TokenUsage

Namespace
IntentSharp.Providers
Assembly
IntentSharp.dll

Token counts for one request.

public sealed record TokenUsage : IEquatable<TokenUsage>
Inheritance
object
TokenUsage
Implements
IEquatable<TokenUsage>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Constructors

TokenUsage(int, int)

Token counts for one request.

Properties

InputTokens

Tokens the provider counted in the request.

OutputTokens

Tokens the provider counted in the reply.

TotalTokens

Input plus output tokens.

Zero

No tokens.

Operators

operator +(TokenUsage, TokenUsage)

Adds two usages, input to input and output to output.