Microsoft Foundry: Unlock Adaptive, Personalized Agents with User-Scoped Persistent Memory

· Source: Microsoft Foundry Blog articles · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Cloud Computing & IT Infrastructure, Software Development & Engineering · Depth: Intermediate, medium

Summary

Microsoft Foundry introduces a design pattern for user-scoped persistent memory in enterprise AI agents, addressing the challenge of maintaining conversational continuity and personalization across sessions while adhering to strict privacy, data isolation, governance, and compliance requirements. Traditional AI agents are stateless across sessions, losing context and user preferences. This solution, built on Azure Cosmos DB, isolates each user's context, storing curated, long-lived signals like preferences and summarized outcomes, rather than raw transcripts. It separates ephemeral in-session state, managed by Microsoft Foundry, from durable user memory. The architecture leverages Microsoft Entra ID for identity, Microsoft Foundry for agent runtime, MCP servers for memory and search, Azure Cosmos DB for NoSQL for persistent storage, and Azure AI Search for knowledge grounding. Key models include text-embedding-3-large, gpt-5-mini, and gpt-5.1.

Key takeaway

For AI Architects designing adaptive enterprise agents, this user-scoped persistent memory pattern offers a robust solution to achieve personalization without compromising compliance. You should consider implementing this reference architecture with Azure Cosmos DB to ensure data isolation and governance for long-term user context. This approach allows your agents to learn and adapt over time, enhancing user experience while meeting strict enterprise trust boundaries.

Key insights

User-scoped persistent memory enables adaptive enterprise AI agents while preserving data isolation and compliance.

Principles

Method

Implement user-scoped persistent memory using Azure Cosmos DB partitioned by user ID, storing curated signals. Integrate with Microsoft Foundry for in-session context and Azure AI Search for knowledge grounding.

In practice

Topics

Code references

Best for: AI Engineer, AI Architect, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Microsoft Foundry Blog articles.