Property Memory
Memory
Long-term memory store used to recall relevant context across turns.
Assign an AgentMemory implementation to enable retrieval of relevant text partitions. Retrieved snippets are injected as hidden context up to MaximumRecallTokens.
public AgentMemory Memory { get; set; }
Property Value
Examples
using var chat = new RagChat(ragEngine, chatModel);
// Enable persistent memory across conversation turns
chat.Memory = new AgentMemory(embeddingModel);