Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,22 @@ Clone this repo and run any of these directly. Each subdirectory has its own REA
Most examples need:

- **Dapr CLI** initialized: `dapr init` ([install](https://docs.dapr.io/getting-started/install-dapr-cli/))
- **Dapr runtime 1.17 or later.** The SDK uses workflow patching, which arrived in Dapr 1.17. On an older runtime a workflow starts, then fails on replay with a history mismatch. Check the `Runtime version` line:
```bash
dapr --version
```
If it is older than 1.17, reinstall the runtime:
```bash
dapr uninstall
dapr init
```
- **Redis** on `localhost:6379` (handled by `dapr init`, or `docker run -d --name redis -p 6379:6379 redis:latest`)
- **An LLM API key** in your env — `OPENAI_API_KEY`, `GOOGLE_API_KEY` (ADK), or `ANTHROPIC_API_KEY` (HolmesGPT) depending on the example
- **Dependencies** installed from the repo root: `uv sync --all-packages --extra <framework>`
- **The repo's virtual environment active.** `uv sync` installs into `.venv` at the repo root. The `dapr run ... -- python3 ...` commands use whatever `python3` is on your `PATH`, so activate the venv first, in the same shell:
```bash
source .venv/bin/activate
```
Without it, `python3` fails with `ModuleNotFoundError` (for example `No module named 'langgraph'`).

The per-framework READMEs spell out exactly which are required.
2 changes: 2 additions & 0 deletions examples/adk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Prerequisites

Check the Dapr runtime version (1.17 or later) and activate the repo's virtual environment first. See [Shared prerequisites](../README.md#shared-prerequisites).

1. **Dapr** [running locally](https://docs.dapr.io/getting-started/install-dapr-cli/):
```bash
dapr init
Expand Down
2 changes: 2 additions & 0 deletions examples/claude_agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Prerequisites

Check the Dapr runtime version (1.17 or later) first. See [Shared prerequisites](../README.md#shared-prerequisites).

1. **Dapr** installed and initialized:
```bash
dapr init
Expand Down
2 changes: 2 additions & 0 deletions examples/crewai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Prerequisites

Check the Dapr runtime version (1.17 or later) and activate the repo's virtual environment first. See [Shared prerequisites](../README.md#shared-prerequisites).

1. **Dapr** [running locally](https://docs.dapr.io/getting-started/install-dapr-cli/):
```bash
dapr init
Expand Down
2 changes: 2 additions & 0 deletions examples/deepagents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Prerequisites

Check the Dapr runtime version (1.17 or later) and activate the repo's virtual environment first. See [Shared prerequisites](../README.md#shared-prerequisites).

1. **Dapr** [running locally](https://docs.dapr.io/getting-started/install-dapr-cli/):
```bash
dapr init
Expand Down
2 changes: 2 additions & 0 deletions examples/langchain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Prerequisites

Check the Dapr runtime version (1.17 or later) and activate the repo's virtual environment first. See [Shared prerequisites](../README.md#shared-prerequisites).

1. **Dapr** installed and initialized:
```bash
dapr init
Expand Down
2 changes: 2 additions & 0 deletions examples/langgraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Prerequisites

Check the Dapr runtime version (1.17 or later) and activate the repo's virtual environment first. See [Shared prerequisites](../README.md#shared-prerequisites).

1. **Dapr** [running locally](https://docs.dapr.io/getting-started/install-dapr-cli/):
```bash
dapr init
Expand Down
2 changes: 2 additions & 0 deletions examples/openai_agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Prerequisites

Check the Dapr runtime version (1.17 or later) and activate the repo's virtual environment first. See [Shared prerequisites](../README.md#shared-prerequisites).

1. **Dapr** [running locally](https://docs.dapr.io/getting-started/install-dapr-cli/):
```bash
dapr init
Expand Down
2 changes: 2 additions & 0 deletions examples/pydantic_ai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Prerequisites

Check the Dapr runtime version (1.17 or later) and activate the repo's virtual environment first. See [Shared prerequisites](../README.md#shared-prerequisites).

1. **Dapr** [running locally](https://docs.dapr.io/getting-started/install-dapr-cli/):
```bash
dapr init
Expand Down
2 changes: 2 additions & 0 deletions examples/smolagents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Prerequisites

Check the Dapr runtime version (1.17 or later) and activate the repo's virtual environment first. See [Shared prerequisites](../README.md#shared-prerequisites).

1. **Dapr** installed and initialized:
```bash
dapr init
Expand Down
2 changes: 2 additions & 0 deletions examples/strands/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Prerequisites

Check the Dapr runtime version (1.17 or later) and activate the repo's virtual environment first. See [Shared prerequisites](../README.md#shared-prerequisites).

1. **Dapr** installed and initialized:
```bash
dapr init
Expand Down