← AI PulseSep 4, 2026

Wire · news · Single-source brief

Microsoft Agent Framework Gains Durable Memory with Azure Cosmos DB Integration

Microsoft has introduced a new preview integration that provides durable, cross-session memory for Microsoft Agent Framework agents, backed by Azure Cosmos DB.

By Illumora Editorial

Source · Sep 4, 2026, 1:00 PM · On Illumora · Sep 4, 2026, 1:02 PM

Media from the primary source — shown here so you can stay on Illumora.

Rewritten from one allowlisted primary — not independent enterprise reporting. Lanes →

Brief drafted by Illumora’s editorial model from the linked primary source. Ops desk reviews flagged pieces. How we write →

Read the source →Microsoft Semantic Kernel Blog — Native memory for Microsoft Agent Framework with Azure Cosmos DB | Microsoft Agent Framework
Save

Microsoft has announced a new preview integration for its Microsoft Agent Framework, enabling agents to retain memory beyond the current conversation. This capability is facilitated by Azure Cosmos DB, providing durable, cross-session memory storage.

The integration is delivered through a new Python package, agent-framework-azure-cosmos-memory, which includes the CosmosMemoryContextProvider. This context provider can be attached to an agent to automatically store conversation turns, extract durable memories, and recall relevant information in subsequent interactions.

Key Points

  • A new preview integration provides durable, cross-session memory for Microsoft Agent Framework agents.
  • The memory is backed by Azure Cosmos DB.
  • The agent-framework-azure-cosmos-memory Python package offers CosmosMemoryContextProvider.
  • This provider automatically stores conversation turns, extracts durable memories, and recalls relevant facts, summaries, and user profiles.
  • The integration is currently available for Python only and its APIs may change before general availability.
  • CosmosMemoryContextProvider uses both pre-run and post-run lifecycle stages to manage memory.
  • Azure Cosmos DB for NoSQL stores turns and derived memories, supporting vector, full-text, and hybrid retrieval.

Context

According to Microsoft, agents become more useful when they can remember information beyond a single conversation. This integration addresses that need by allowing agents to maintain context across sessions. The CosmosMemoryContextProvider fits into the framework's existing context-provider model, where a ContextProvider runs around every agent invocation, contributing information before the model runs and reacting afterward.

Why It Matters

This integration allows developers building with the Microsoft Agent Framework to implement agents with long-term memory without orchestrating a separate retrieval pipeline. It simplifies the process of creating more sophisticated and personalized agent experiences by making memory a composable part of the agent's lifecycle.

What To Do

  • Install the preview integration using pip install --pre agent-framework-azure-cosmos-memory agent-framework-foundry.
  • Set environment variables for COSMOS_ENDPOINT, FOUNDRY_ENDPOINT, EMBEDDING_MODEL, and CHAT_MODEL.
  • Create and add the CosmosMemoryContextProvider to an agent's context_providers collection.
  • Ensure a stable user_id is supplied to enable cross-session memory recall.

Keep Exploring

/atlas/gpt-family /techniques/system-user-separation