次の方法で共有


RunStepCompletionUsage Class

Definition

Usage statistics related to the run step.

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

Properties

CompletionTokens

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

PromptTokens

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

TotalTokens

Total number of tokens used (prompt + completion).

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<RunStepCompletionUsage>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<RunStepCompletionUsage>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RunStepCompletionUsage>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RunStepCompletionUsage>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<RunStepCompletionUsage>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to