Microsoft Agent Framework integrates Azure Cosmos DB for durable, cross-session agent memory

davemccollough · x · 2026-09-01

Microsoft Agent Framework now supports native persistent memory backed by Azure Cosmos DB. By using the CosmosMemoryContextProvider from the new agent-framework-azure-cosmos-memory Python package (in preview), developers can enable cross-session and cross-thread memory with a single object configuration.

The system automatically stores raw conversation turns and distills them into high-value derived memories, such as thread summaries, extracted facts, and user profiles. It supports vector, full-text, and hybrid search capabilities within the same database. This update aims to standardize memory infrastructure with built-in safety considerations.

Related event: Microsoft Agent Framework Adds Persistent Memory via Cosmos DB(2 posts)→

Original post →

More from coding & agent

coding & agent channel →