dapr-agents/quickstarts
Bilgin Ibryam 889b7bf7ef
Fixed docs, and added build and social media links to the readme (#110)
Signed-off-by: Bilgin Ibryam <bibryam@gmail.com>
2025-05-01 09:08:45 -07:00
..
01-hello-world Adding DaprWorkflowContext from dapr.ext.workflow (#99) 2025-04-24 04:05:43 -07:00
02_llm_call_dapr Fix/30 add linter action (#95) 2025-04-23 22:58:48 -07:00
02_llm_call_elevenlabs Fix/30 add linter action (#95) 2025-04-23 22:58:48 -07:00
02_llm_call_hugging_face Fix/30 add linter action (#95) 2025-04-23 22:58:48 -07:00
02_llm_call_nvidia Fix/30 add linter action (#95) 2025-04-23 22:58:48 -07:00
02_llm_call_open_ai Fix/30 add linter action (#95) 2025-04-23 22:58:48 -07:00
03-agent-tool-call Fix/30 add linter action (#95) 2025-04-23 22:58:48 -07:00
04-agentic-workflow Adding DaprWorkflowContext from dapr.ext.workflow (#99) 2025-04-24 04:05:43 -07:00
05-multi-agent-workflow-actors Fix/30 add linter action (#95) 2025-04-23 22:58:48 -07:00
05-multi-agent-workflow-dapr-workflows Fix/30 add linter action (#95) 2025-04-23 22:58:48 -07:00
06-document-agent-chainlit Fixed docs, and added build and social media links to the readme (#110) 2025-05-01 09:08:45 -07:00
07-k8s-multi-agent-workflow Fix: ref to 07 in compose file (#106) 2025-04-28 15:49:54 -07:00
08-data-agent-mcp-chainlit Fixed docs, and added build and social media links to the readme (#110) 2025-05-01 09:08:45 -07:00
README.md Minor doc cleanups (#49) 2025-03-12 07:20:16 -07:00
validate.sh Quickstarts and fixes (#14) 2025-03-06 09:55:49 -08:00

README.md

Dapr Agents Quickstarts

A collection of examples demonstrating how to use Dapr Agents to build applications with LLM-powered autonomous agents and event-driven workflows. Each quickstart builds upon the previous one, introducing new concepts incrementally.

Prerequisites

To run these quickstarts, you'll need:

Getting Started

  1. Clone this repository
git clone https://github.com/dapr/dapr-agents/
cd dapr-agents/quickstarts
  1. For workflow examples, install Dapr CLI and initialize Dapr
dapr init
  1. Choose a quickstart from the list below. Or click here to start with Hello-World.

Available Quickstarts

Hello World

A rapid introduction to Dapr Agents core concepts through simple demonstrations:

  • Basic LLM Usage: Simple text generation with OpenAI models
  • Creating Agents: Building agents with custom tools in under 20 lines of code
  • ReAct Pattern: Implementing reasoning and action cycles in agents
  • Simple Workflows: Setting up multi-step LLM processes

Go to Hello World

LLM Call with Dapr Chat Client

Learn how to interact with Language Models using Dapr Agents' DaprChatClient:

  • Text Completion: Generating responses to prompts
  • Swapping LLM providers: switching LLM backends without application code change
  • Resilience: Setting timeout, retry and circuit-breaking
  • PII Obfuscation Automatically detect and mask sensitive user information.

This quickstart shows basic text generation using plain text prompts and templates. Using the DaprChatClient you can target different LLM providers without changing your agent's code.

Go to Dapr LLM Call

LLM Call with OpenAI Client

Learn how to interact with Language Models using Dapr Agents and native LLM client libraries.

  • Text Completion: Generating responses to prompts
  • Structured Outputs: Converting LLM responses to Pydantic objects

This quickstart shows both basic text generation and structured data extraction from LLMs. This quickstart uses the OpenAIChatClient which allows you to use audio and perform embeddings in addition to chat completion.

Note: Other quickstarts for specific clients are available for Elevenlabs, Hugging Face, and Nvidia.

Go to OpenAI LLM call

Agent Tool Call

Create your first AI agent with custom tools:

  • Tool Definition: Creating reusable tools with the @tool decorator
  • Agent Configuration: Setting up agents with roles, goals, and tools
  • Function Calling: Enabling LLMs to execute Python functions

This quickstart demonstrates how to build a weather assistant that can fetch information and perform actions.

Go to Agent Tool Call

Agentic Workflow

Introduction to using stateful workflows with Dapr Agents:

  • LLM-powered Tasks: Using language models in workflows
  • Task Chaining: Creating resilient multi-step processes executing in sequence
  • Fan-out/Fan-in:Executing activities in parallel; then synchronize these activities until all preceding activities have completed.

This quickstart demonstrates how to orchestrate sequential and parallel tasks using Dapr Agents' workflow capabilities.

Go to Agentic Workflow

Multi-Agent Workflows

Advanced example of event-driven workflows with multiple autonomous agents:

  • Multi-agent Systems: Creating a network of specialized agents
  • Event-driven Architecture: Implementing pub/sub messaging between agents
  • Actor Model: Using Dapr Actors for stateful agent management
  • Workflow Orchestration: Coordinating agents through different selection strategies

This quickstart demonstrates a Lord of the Rings themed multi-agent system where agents collaborate to solve problems.

Note: To see Actor-based workflow see Multi-Agent Actors.

Go to Multi-Agent Workflows