Sessions and multi-turn chats
An Agent Framework agent forgets everything between runs unless you give it a session. See the same two-message chat fail without a session, work with one, and survive a restart.
10 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 10 minutes.
Written from the official documentation
- learn.microsoft.com/en-us/agent-framework/concepts/agents/conversations/session
- learn.microsoft.com/en-us/agent-framework/get-started/multi-turn
- learn.microsoft.com/en-us/agent-framework/migration-guide/from-autogen
- learn.microsoft.com/en-us/agent-framework/concepts/agents/conversations/context-providers
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