Chat history storage and memory backends
See where a conversation is kept between turns. Compare history in your own program, history kept by the AI service, and history in Redis that survives a restart. Then learn how memory backends such as Cosmos DB and Mem0 differ from a plain transcript.
12 minPro
Checking your access…
Inside this lesson
- An animation you play, pause and step through, with each part saying what it is doing.
- The real code beside it, with the lines for each step lit up.
- Practice mode, where you route each message yourself, and a short quiz.
- About 12 minutes.
Written from the official documentation
- learn.microsoft.com/en-us/agent-framework/concepts/agents/conversations/storage
- learn.microsoft.com/en-us/agent-framework/integrations/by-component/context-providers/redis
- learn.microsoft.com/en-us/agent-framework/integrations/by-component/context-providers/azure-cosmos
- learn.microsoft.com/en-us/agent-framework/integrations/by-component/context-providers/mem0
In this module: Conversations and memory
- Sessions and multi-turn chatsKeeping a conversation going.Pro
- Memory with context providersAdding what the agent should remember.Pro
- Chat history storage and memory backendsWhere history lives: the service, Redis, Cosmos DB or Mem0.Pro
- CompactionShrinking a long history so it fits the context window.Pro
- RAG and vector storesGrounding answers with vector search over your own data.Pro