Share via


UserProfileMemoryItem Class

Definition

A memory item specifically containing user profile information extracted from conversations, such as preferences, interests, and personal details.

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

Constructors

Name Description
UserProfileMemoryItem()

Initializes a new instance of UserProfileMemoryItem for deserialization.

UserProfileMemoryItem(String, DateTimeOffset, String, String, MemoryItemKind, IDictionary<String,BinaryData>)

Initializes a new instance of UserProfileMemoryItem.

UserProfileMemoryItem(String, DateTimeOffset, String, String)

Initializes a new instance of UserProfileMemoryItem.

Properties

Name Description
Content

The content of the memory.

(Inherited from MemoryItem)
Kind

The kind of the memory item.

(Inherited from MemoryItem)
MemoryId

The unique ID of the memory item.

(Inherited from MemoryItem)
Scope

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

(Inherited from MemoryItem)
UpdatedAt

The last update time of the memory item.

(Inherited from MemoryItem)

Methods

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

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

(Inherited from MemoryItem)
IJsonModel<MemoryItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from MemoryItem)
IJsonModel<UserProfileMemoryItem>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<UserProfileMemoryItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MemoryItem>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from MemoryItem)
IPersistableModel<MemoryItem>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from MemoryItem)
IPersistableModel<MemoryItem>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from MemoryItem)
IPersistableModel<UserProfileMemoryItem>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<UserProfileMemoryItem>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<UserProfileMemoryItem>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to