你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MemoryItem Class

Definition

A single memory item stored in the memory store, containing content and metadata. Please note this is the abstract base class. The derived classes available for instantiation are: ChatSummaryMemoryItem.

[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.Projects.OpenAI.UnknownMemoryItem))]
public abstract class MemoryItem : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.OpenAI.MemoryItem>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.OpenAI.MemoryItem>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.Projects.OpenAI.UnknownMemoryItem))>]
type MemoryItem = class
    interface IJsonModel<MemoryItem>
    interface IPersistableModel<MemoryItem>
Public MustInherit Class MemoryItem
Implements IJsonModel(Of MemoryItem), IPersistableModel(Of MemoryItem)
Inheritance
MemoryItem
Derived
Attributes
Implements

Properties

Name Description
Content

The content of the memory.

MemoryId

The unique ID of the memory item.

Scope

The namespace that logically groups and isolates memories, such as a user ID.

UpdatedAt

The last update time of the memory item.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<MemoryItem>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<MemoryItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<MemoryItem>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<MemoryItem>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<MemoryItem>.Write(ModelReaderWriterOptions)

Applies to