<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/native-agent-memory-for-microsoft-agent-framework-powered-by-azure-cosmos-db-ackctklaz" -->

---
title: Native Agent Memory for Microsoft Agent Framework,...
description: Microsoft Agent Framework now supports native durable memory via the CosmosMemoryContextProvider, shipped in the new agent-framework-azure-cosmos-memory Python...
canonical: https://daily.dev/posts/native-agent-memory-for-microsoft-agent-framework-powered-by-azure-cosmos-db-ackctklaz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Native Agent Memory for Microsoft Agent Framework, Powered by Azure Cosmos DB | daily.dev
og:description: Microsoft Agent Framework now supports native durable memory via the CosmosMemoryContextProvider, shipped in the new agent-framework-azure-cosmos-memory Python...
og:url: https://daily.dev/posts/native-agent-memory-for-microsoft-agent-framework-powered-by-azure-cosmos-db-ackctklaz
og:image: https://api.daily.dev/og/posts/acKctklAZ.png
og:image:alt: Native Agent Memory for Microsoft Agent Framework, Powered by Azure Cosmos DB
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Native Agent Memory for Microsoft Agent Framework, Powered by Azure Cosmos DB

**[DevBlogs](https://daily.dev/sources/devblogs)** · 9 min read · 0 upvotes · 0 comments

## Summary

Microsoft Agent Framework now supports native durable memory via the CosmosMemoryContextProvider, shipped in the new agent-framework-azure-cosmos-memory Python package (preview). By attaching a single provider object to an agent, every conversation turn is stored in Azure Cosmos DB for NoSQL, distilled into facts, summaries, and user profiles, and recalled across sessions using vector, full-text, and hybrid search — no extra orchestration code required. The provider uses before_run and after_run lifecycle hooks to inject relevant context before each agent run and persist new turns afterward. Memory is scoped by user_id for cross-session recall. Custom extraction prompts via Prompty templates allow domain-specific tuning of what the agent remembers. Production considerations include non-blocking background extraction, prompt-injection safety (recalled profiles are injected as untrusted user-role messages), and explicit model configuration.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devblogs.microsoft.com/cosmosdb/native-agent-memory-for-microsoft-agent-framework-powered-by-azure-cosmos-db>

## Similar posts on daily.dev

- [Native agent memory with Azure Cosmos DB](https://daily.dev/posts/native-agent-memory-with-azure-cosmos-db-8flymz4pd) · DevBlogs · 1 upvotes · 0 comments
- [Microsoft Foundry Agent Service Simplifies State Management with Long-Term Memory Preview](https://daily.dev/posts/microsoft-foundry-agent-service-simplifies-state-management-with-long-term-memory-preview-3mbnmb6c2) · InfoQ · 0 upvotes · 0 comments
- [AI Agents Need Memory: Building Persistent Memory for Agentforce](https://daily.dev/posts/ai-agents-need-memory-building-persistent-memory-for-agentforce-db6orcgcy) · Salesforce Engineering · 4 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#vector-search](https://daily.dev/tags/vector-search), [#azure-cosmos-db](https://daily.dev/tags/azure-cosmos-db)

[View this post on daily.dev](https://daily.dev/posts/native-agent-memory-for-microsoft-agent-framework-powered-by-azure-cosmos-db-ackctklaz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Native Agent Memory for Microsoft Agent Framework, Powered by Azure Cosmos DB","url":"https://daily.dev/posts/native-agent-memory-for-microsoft-agent-framework-powered-by-azure-cosmos-db-ackctklaz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/native-agent-memory-for-microsoft-agent-framework-powered-by-azure-cosmos-db-ackctklaz"},"datePublished":"2026-07-24T11:05:50.761Z","dateModified":"2026-07-24T11:24:29.555Z","description":"Microsoft Agent Framework now supports native durable memory via the CosmosMemoryContextProvider, shipped in the new agent-framework-azure-cosmos-memory Python...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a4551d60ca8e22a7302c2205888cd0bc?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a4551d60ca8e22a7302c2205888cd0bc?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"DevBlogs","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"DevBlogs","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/8f68b453325f482ebeb73fb780092713","url":"https://daily.dev/sources/devblogs"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/native-agent-memory-for-microsoft-agent-framework-powered-by-azure-cosmos-db-ackctklaz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,vector-search,azure-cosmos-db","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DevBlogs","item":"https://daily.dev/sources/devblogs"},{"@type":"ListItem","position":3,"name":"Native Agent Memory for Microsoft Agent Framework, Powered by Azure Cosmos DB"}]}
```

