Share via


MemoryStoreOperationUsage Class

Definition

Usage statistics of a memory store operation.

public class MemoryStoreOperationUsage : Azure.AI.AgentServer.Contracts.Generated.Common.IUtf8JsonSerializable, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryStoreOperationUsage>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryStoreOperationUsage>
type MemoryStoreOperationUsage = class
    interface IUtf8JsonSerializable
    interface IJsonModel<MemoryStoreOperationUsage>
    interface IPersistableModel<MemoryStoreOperationUsage>
Public Class MemoryStoreOperationUsage
Implements IJsonModel(Of MemoryStoreOperationUsage), IPersistableModel(Of MemoryStoreOperationUsage), IUtf8JsonSerializable
Inheritance
MemoryStoreOperationUsage
Implements

Constructors

Name Description
MemoryStoreOperationUsage()

Initializes a new instance of MemoryStoreOperationUsage for deserialization.

MemoryStoreOperationUsage(Int32, Int32, ResponseUsageInputTokensDetails, Int32, ResponseUsageOutputTokensDetails, Int32, IDictionary<String, BinaryData>)

Initializes a new instance of MemoryStoreOperationUsage.

MemoryStoreOperationUsage(Int32, Int32, ResponseUsageInputTokensDetails, Int32, ResponseUsageOutputTokensDetails, Int32)

Initializes a new instance of MemoryStoreOperationUsage.

Properties

Name Description
EmbeddingTokens

The number of embedding tokens.

InputTokens

The number of input tokens.

InputTokensDetails

A detailed breakdown of the input tokens.

OutputTokens

The number of output tokens.

OutputTokensDetails

A detailed breakdown of the output tokens.

TotalTokens

The total number of tokens used.

Methods

Name Description
DeserializeMemoryStoreOperationUsage(JsonElement, ModelReaderWriterOptions)
FromResponse(Response)

Deserializes the model from a raw response.

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
ToRequestContent()

Convert into a RequestContent.

Explicit Interface Implementations

Name Description
IJsonModel<MemoryStoreOperationUsage>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MemoryStoreOperationUsage>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MemoryStoreOperationUsage>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MemoryStoreOperationUsage>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MemoryStoreOperationUsage>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to