Skip to main content

Microsoft Agent Framework + Dapr

Make your Microsoft Agent Framework agents production-ready. These tutorials show you how to add fault tolerance using Dapr.


Why Dapr for Microsoft Agent Framework?โ€‹

ChallengeDapr Solution
Agent crashes lose all progressDurable workflows checkpoint every step
Agents tightly coupled, hard to scalePub/sub decouples communication
Chat memory lost on restartState store persists agent memory across restarts
Custom retry logic everywhereBuilt-in retries with exponential backoff
Conversation API required

Unlike the third-party Python frameworks, the Microsoft Agent Framework integration (diagridio/dotnet-ai) reaches its LLM through a Dapr conversation component โ€” register the conversation client with AddDaprConversationClient() and pass a conversationComponentName when you add an agent. A conversation component is required here, not optional. See the framework requirements table.

Dapr & AI University ยท Learn this hands-onMake MAF agents reliable with Dapr WorkflowAdd durable state and crash recovery to Microsoft Agent Framework agents with Dapr Workflow. Requires an OpenAI API key.Intermediate30 min.NETStart the track