How agent memory works in the Microsoft Agent Framework
Jesse Liberty explains how AI agents in .NET remember what happens to them. Memory is handled by Agent Memory, built on the Neo4j graph database, and it works at three levels: short-term memory holds the current conversation, long-term memory stores accumulated knowledge and the relationships between facts, and "reasoning memory" keeps the agent's past actions and decisions. The author highlights bitemporality in particular: the system records not only when a fact occurred, but also when it recorded that fact. The article also walks through code: connecting to Neo4j, creating a MemoryStore, and the StoreMemory() and RetrieveMemory() methods. This lets an agent keep context across sessions.