Share via


MemoryStoreObject Class

Definition

A memory store that can store and retrieve user memories.

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

Constructors

Name Description
MemoryStoreObject()

Initializes a new instance of MemoryStoreObject for deserialization.

MemoryStoreObject(MemoryStoreObjectObject, String, DateTimeOffset, DateTimeOffset, String, String, IReadOnlyDictionary<String,String>, MemoryStoreDefinition, IDictionary<String,BinaryData>)

Initializes a new instance of MemoryStoreObject.

MemoryStoreObject(String, DateTimeOffset, DateTimeOffset, String, MemoryStoreDefinition)

Initializes a new instance of MemoryStoreObject.

Properties

Name Description
CreatedAt

The Unix timestamp (seconds) when the memory store was created.

Definition

The definition of the memory store. Please note MemoryStoreDefinition is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include MemoryStoreDefaultDefinition.

Description

A human-readable description of the memory store.

Id

The unique identifier of the memory store.

Metadata

Arbitrary key-value metadata to associate with the memory store.

Name

The name of the memory store.

Object

The object type, which is always 'memory_store'.

UpdatedAt

The Unix timestamp (seconds) when the memory store was last updated.

Methods

Name Description
DeserializeMemoryStoreObject(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<MemoryStoreObject>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MemoryStoreObject>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MemoryStoreObject>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MemoryStoreObject>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MemoryStoreObject>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to