Partilhar via


RunCompletionUsage Class

Definition

Usage statistics related to the run. This value will be null if the run is not in a terminal state (i.e. in_progress, queued, etc.).

public class RunCompletionUsage : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.RunCompletionUsage>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.RunCompletionUsage>
type RunCompletionUsage = class
    interface IJsonModel<RunCompletionUsage>
    interface IPersistableModel<RunCompletionUsage>
Public Class RunCompletionUsage
Implements IJsonModel(Of RunCompletionUsage), IPersistableModel(Of RunCompletionUsage)
Inheritance
RunCompletionUsage
Implements

Properties

CompletionTokens

Number of completion tokens used over the course of the run.

PromptTokens

Number of prompt tokens used over the course of the run.

TotalTokens

Total number of tokens used (prompt + completion).

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<RunCompletionUsage>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<RunCompletionUsage>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RunCompletionUsage>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RunCompletionUsage>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<RunCompletionUsage>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to