Why Dapr Agents

Understanding the benefits and use cases for Dapr Agents

Dapr Agents is a production-ready, open-source framework (v1.0) for building and orchestrating LLM-based autonomous agents that leverages Dapr’s proven distributed systems foundation. Unlike other agentic frameworks that require developers to build infrastructure from scratch, Dapr Agents enables teams to focus on agent intelligence by providing enterprise-grade scalability, state management, and messaging capabilities out of the box. This approach eliminates the complexity of recreating distributed system fundamentals while delivering agentic workflows powered by Dapr.

Challenges with Existing Frameworks

Many agentic frameworks today attempt to redefine how microservices are built and orchestrated by developing their own platforms for core distributed system capabilities. While these efforts showcase innovation, they often lead to steep learning curves, fragmented systems, and unnecessary complexity when scaling or adapting to new environments.

These frameworks require developers to adopt entirely new paradigms or recreate foundational infrastructure, rather than building on existing solutions that are proven to handle these challenges at scale. This added complexity diverts focus from the primary goal: designing and implementing intelligent, effective agents.

How Dapr Agents Solves It

Dapr Agents takes a different approach by building on Dapr, leveraging its proven APIs and patterns including workflows, pub/sub messaging, state management, and service communication. This integration eliminates the need to recreate foundational components from scratch.

By integrating with Dapr’s runtime and modular components, Dapr Agents empowers developers to build and deploy agents that work as collaborative services within larger systems. Whether experimenting with a single agent or orchestrating workflows involving multiple agents, Dapr Agents allows teams to concentrate on the intelligence and behavior of LLM-powered agents while leveraging a proven framework for scalability and reliability.

Principles

Agent-Centric Design

Dapr Agents is designed to place agents, powered by LLMs, at the core of task execution and workflow orchestration. This principle emphasizes:

  • LLM-Powered Agents: Dapr Agents enables the creation of agents that leverage LLMs for reasoning, dynamic decision-making, and natural language interactions.
  • Adaptive Task Handling: Agents in Dapr Agents are equipped with flexible patterns like tool calling and reasoning loops (e.g., ReAct), allowing them to autonomously tackle complex and evolving tasks.
  • Multi-agent Systems: Dapr Agents’ framework allows agents to act as modular, reusable building blocks that integrate seamlessly into workflows, whether they operate independently or collaboratively.

While Dapr Agents centers around agents, it also recognizes the versatility of using LLMs directly in deterministic workflows or simpler task sequences. In scenarios where the agent’s built-in task-handling patterns, like tool calling or ReAct loops, are unnecessary, LLMs can act as core components for reasoning and decision-making. This flexibility ensures users can adapt Dapr Agents to suit diverse needs without being confined to a single approach.

Backed by Durable Workflows

Dapr Agents places durability at the core of its architecture, leveraging Dapr Workflows as the foundation for durable agent execution and deterministic multi-agent orchestration.

  • Durable Agent Execution: DurableAgents are fundamentally workflow-backed, ensuring all LLM calls and tool executions remain durable, auditable, and resumable. Workflow checkpointing guarantees agents can recover from any point of failure while maintaining state consistency.
  • Deterministic Multi-Agent Orchestration: Workflows provide centralized control over task dependencies and coordination between multiple agents. Dapr’s code-first workflow engine enables reliable orchestration of complex business processes while preserving agent autonomy where appropriate.

By integrating workflows as the foundational layer, Dapr Agents enables systems that combine the reliability of deterministic execution with the intelligence of LLM-powered agents, ensuring reliability and scalability.

Modular Component Model

Dapr Agents utilizes Dapr’s pluggable component framework and building blocks to simplify development and enhance flexibility:

  • Building Blocks for Core Functionality: Dapr provides API building blocks, such as Pub/Sub messaging, state management, service invocation, and more, to address common microservice challenges and promote best practices.
  • Interchangeable Components: Each building block operates on swappable components (e.g., Redis, Kafka, Azure CosmosDB), allowing you to replace implementations without changing application code.
  • Seamless Transitions: Develop locally with default configurations and deploy effortlessly to cloud environments by simply updating component definitions.
Building blocks and some of the components that implement themAn application with a Dapr sidecar at the top feeds a horizontal line, and from that line an arrow drops to each of fifteen building blocks. The stable blocks come first: state management, publish and subscribe, bindings, secrets, actors, configuration, workflows, jobs and middleware. The alpha blocks follow on the right: distributed lock, cryptography, conversation, binary store, search and vector. Under each block are the marks of some of the components it can be configured with. State management shows AWS DynamoDB, Azure Cosmos DB, Google Firebase and Redis. Publish and subscribe shows AWS SQS, Azure Service Bus, Redis and RabbitMQ. Bindings shows AWS S3, Azure Storage, Google Cloud Storage and Apache Kafka. Secrets shows AWS Secrets Manager, Azure Key Vault, Kubernetes secrets and HashiCorp Vault. Actors shows AWS DynamoDB, Azure Cosmos DB, Redis and PostgreSQL. Configuration shows Redis, Azure App Configuration and PostgreSQL. Workflows has no components of its own: it is served by the Dapr runtime. Jobs shows the Dapr mark for the same reason. Middleware shows OAuth2, OpenID Connect, Open Policy Agent and WebAssembly. Distributed lock shows Redis. Cryptography shows Azure Key Vault, Kubernetes secrets, JSON Web Key Sets and local files. Conversation shows Anthropic, AWS Bedrock, Mistral and OpenAI. Binary store shows AWS S3, Azure Storage and Google Cloud Storage. Search and vector each show Meilisearch. These are examples, not the full list.AppStatemanagementAWSDynamoDBAzureCosmos DBGCP FirebaseRedisPublish &subscribeAWS SQSAzureService BusRedisRabbitMQBindingsAWS S3Azure StorageGCPCloud StorageKafkaSecretsAWS SecretsManagerAzureKey VaultKubernetesSecretsHashiCorpVaultActorsAWSDynamoDBAzureCosmos DBRedisPostgresConfigurationRedisAzure AppConfigurationPostgresMiddlewareOAuth2OpenIDConnectOPAWasmDistributedlockalphaRedisCryptographyalphaAzureKey VaultKubernetesSecretsJSON WebKey SetsLocal filesConversationalphaAnthropicAWS BedrockMistralOpenAIBinary StorealphaAWS S3AzureBlob StorageGCPCloud StorageSearchalphaMeilisearchVectoralphaMeilisearchSome of the components for each building block API. See the component reference for the full list.

Message-Driven Communication

Dapr Agents emphasizes the use of Pub/Sub messaging for event-driven communication between agents. This principle ensures:

  • Decoupled Architecture: Asynchronous communication for scalability and modularity.
  • Real-Time Adaptability: Agents react dynamically to events for faster, more flexible task execution.
  • Event-Driven Workflows: : By combining Pub/Sub messaging with workflow capabilities, agents can collaborate through event streams while participating in larger orchestrated workflows, enabling both autonomous coordination and structured task execution.
Agents talking through a brokerA green hexagon named Frodo, carrying a Dapr sidecar badge, sends a POST to v1.0/publish/pubsub/broadcast whose body names the sender, its role and what it said. The call reaches a green message broker, and the broker delivers to two further agents, a blue one named Legolas and a gold one named Gandalf, each on its own route: POST /broadcast/legolas and POST /broadcast/gandalf. Nothing joins the three agents to each other.POST /broadcast/legolasPOST /broadcast/gandalfFrodoPOSTv1.0/publish/pubsub/broadcast"name": "Frodo","role": "Assistant","content": "Let’s go to Mordor!"Message brokerLegolasGandalf

Decoupled Infrastructure Design

Dapr Agents ensures a clean separation between agents and the underlying infrastructure, emphasizing simplicity, scalability, and adaptability:

  • Agent Simplicity: Agents focus purely on reasoning and task execution, while Pub/Sub messaging, routing, and validation are managed externally by modular infrastructure components.
  • Scalable and Adaptable Systems: By offloading non-agent-specific responsibilities, Dapr Agents allows agents to scale independently and adapt seamlessly to new use cases or integrations.
Agents separated from the infrastructure between themA green hexagon named Agent, carrying a Dapr sidecar badge, leads into a dashed band named Dapr. The band holds three Dapr building block APIs - publish and subscribe, state management and service invocation - above three filled tiles for observability, security and resiliency, with a line saying the rest of the building block APIs are not drawn. Two further agents, a blue one and a gold one, lead out of the band. Nothing joins any agent directly to another.DaprPublish &subscribeStatemanagementServiceinvocationObservabilitySecurityResiliencyand 13 more building block APIsAgentAgentAgent

Dapr Agents Benefits

Scalable Workflows as First-Class Citizens

Dapr Agents uses a durable execution workflow engine that guarantees each agent task executes to completion despite network interruptions, node crashes, and other disruptive failures. Developers do not need to understand the underlying workflow engine concepts—simply write an agent that performs any number of tasks and these will be automatically distributed across the cluster. If any task fails, it will be retried and recover its state from where it left off.

Cost-Effective AI Adoption

Dapr Agents builds on Dapr’s Workflow API, which represents each agent as an actor, a single unit of compute and state that is thread-safe and natively distributed. This design enables a scale-to-zero architecture that minimizes infrastructure costs, making AI adoption accessible to organizations of all sizes. The underlying virtual actor model allows thousands of agents to run on demand on a single machine with low latency when scaling from zero. When unused, agents are reclaimed by the system but retain their state until needed again. This design eliminates the trade-off between performance and resource efficiency.

Data-centric AI agents

With built-in connectivity to over 50 enterprise data sources, Dapr Agents efficiently handles structured and unstructured data. From basic PDF extraction to large-scale database interactions, it enables data-driven AI workflows with minimal code changes. Dapr’s bindings and state stores, along with MCP support, provide access to numerous data sources for agent data ingestion.

Accelerated development

Dapr Agents provides AI features that give developers a complete API surface to tackle common problems, including:

  • Flexible prompting
  • Structured outputs
  • Multiple LLM providers
  • Contextual memory
  • Intelligent tool selection
  • MCP integration
  • Multi-agent communications

Integrated Security and Reliability

By building on Dapr, platform and infrastructure teams can apply Dapr’s resiliency policies to the database and message broker components used by Dapr Agents. These policies include timeouts, retry/backoff strategies, and circuit breakers. For security, Dapr provides options to scope access to specific databases or message brokers to one or more agentic app deployments. Additionally, Dapr Agents uses mTLS to encrypt communication between its underlying components.

Built-in Messaging and State Infrastructure

  • Service-to-Service Invocation: Enables direct communication between agents with built-in service discovery, error handling, and distributed tracing. Agents can use this for synchronous messaging in multi-agent workflows.
  • Publish and Subscribe: Supports loosely coupled collaboration between agents through a shared message bus. This enables real-time, event-driven interactions for task distribution and coordination.
  • Durable Workflow: Defines long-running, persistent workflows that combine deterministic processes with LLM-based decision-making. Dapr Agents uses this to orchestrate complex multi-step agentic workflows.
  • State Management: Provides a flexible key-value store for agents to retain context across interactions, ensuring continuity and adaptability during workflows.
  • LLM Integration: Uses Dapr Conversation API to abstract LLM inference APIs for chat completion, and provides native clients for other LLM integrations such as embeddings and audio processing.

Vendor-Neutral and Open Source

As part of the CNCF, Dapr Agents is vendor-neutral, eliminating concerns about lock-in, intellectual property risks, or proprietary restrictions. Organizations gain full flexibility and control over their AI applications using open-source software they can audit and contribute to.