UsageDetails Class

Definition

Provides usage details about a request/response.

C#
public class UsageDetails
Inheritance
UsageDetails

Constructors

Properties

AdditionalCounts

Gets or sets a dictionary of additional usage counts.

InputTokenCount

Gets or sets the number of tokens in the input.

OutputTokenCount

Gets or sets the number of tokens in the output.

TotalTokenCount

Gets or sets the total number of tokens used to produce the response.

Methods

Add(UsageDetails)

Adds usage data from another UsageDetails into this instance.

Applies to

Toode Versioonid
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)