You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: daprdocs/content/en/developing-ai/dapr-agents/dapr-agents-getting-started.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@ Dapr also supports Anthropic, Mistral, and other providers through the [Conversa
145
145
146
146
## Prepare your environment
147
147
148
-
In this getting started guide, you'll work directly from the [Dapr Agents quickstarts](https://github.com/dapr/dapr-agents/tree/main/quickstarts). You'll focus on `02_durable_agent_http.py`—a reliable durable agent backed by Dapr's workflow engine and exposed over HTTP.
148
+
In this getting started guide, you'll work directly from the [Dapr Agents quickstarts](https://github.com/dapr/dapr-agents/tree/main/quickstarts). You'll focus on `03_durable_agent_http.py`—a reliable durable agent backed by Dapr's workflow engine and exposed over HTTP.
149
149
150
150
### 1. Clone the repository
151
151
@@ -179,14 +179,14 @@ This example creates an agent that assists with weather information and uses Dap
179
179
180
180
For this quickstart you'll primarily work with:
181
181
182
-
* `02_durable_agent_http.py` – the main durable weather agent application exposed over HTTP
182
+
* `03_durable_agent_http.py` – the main durable weather agent application exposed over HTTP
183
183
* `function_tools.py` – contains `slow_weather_func`, the tool used by the agent
184
184
* `resources/llm-provider.yaml` – Conversation API and LLM configuration
185
185
* `resources/agent-memory.yaml` – conversation memory state store
186
186
* `resources/agent-workflow.yaml` – workflow and durable execution state store
187
187
188
188
189
-
Open `02_durable_agent_http.py`:
189
+
Open `03_durable_agent_http.py`:
190
190
191
191
```python
192
192
from dapr_agents.llm import DaprChatClient
@@ -347,13 +347,13 @@ Together, these features make the agent **durable**, **reliable**, and **provide
347
347
From the `quickstarts` folder, with your virtual environment activated:
348
348
349
349
```bash
350
-
uv run dapr run --app-id durable-agent --resources-path resources -- python 02_durable_agent_http.py
350
+
uv run dapr run --app-id durable-agent --resources-path resources -- python 03_durable_agent_http.py
351
351
```
352
352
353
353
This:
354
354
355
355
* Starts a Dapr sidecar using the components in `resources/`.
356
-
* Runs `02_durable_agent_http.py` with the durable `WeatherAgent`.
356
+
* Runs `03_durable_agent_http.py` with the durable `WeatherAgent`.
357
357
* Exposes the agent's HTTP API on port `8001`.
358
358
359
359
### Trigger the agent with a prompt
@@ -407,7 +407,7 @@ To see durable execution in action:
407
407
Start it again with the same command:
408
408
409
409
```bash
410
-
uv run dapr run --app-id durable-agent --resources-path resources -- python 02_durable_agent_http.py
410
+
uv run dapr run --app-id durable-agent --resources-path resources -- python 03_durable_agent_http.py
Copy file name to clipboardExpand all lines: daprdocs/content/en/developing-ai/dapr-agents/dapr-agents-quickstarts.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,12 +24,13 @@ The [Dapr Agents Fundamentals quickstart](https://github.com/dapr/dapr-agents/tr
24
24
| Step | File | What You'll Learn |
25
25
|------|------|-------------------|
26
26
| 1 |[`01_llm_client.py`](https://github.com/dapr/dapr-agents/blob/main/quickstarts/01_llm_client.py)| Call an LLM via the Dapr Conversation API using `DaprChatClient`|
27
-
| 2 |[`02_durable_agent_http.py`](https://github.com/dapr/dapr-agents/blob/main/quickstarts/02_durable_agent_http.py)| Run a durable agent backed by Dapr Workflows, exposed over HTTP |
28
-
| 3 |[`03_durable_agent_pubsub.py`](https://github.com/dapr/dapr-agents/blob/main/quickstarts/03_durable_agent_pubsub.py)| Trigger a durable agent via pub/sub instead of HTTP |
29
-
| 4 |[`04_workflow_llm.py`](https://github.com/dapr/dapr-agents/blob/main/quickstarts/04_workflow_llm.py)| Build a deterministic Dapr Workflow that calls LLMs as activities |
| 6 |[`06_durable_agent_tracing.py`](https://github.com/dapr/dapr-agents/blob/main/quickstarts/06_durable_agent_tracing.py)| Enable distributed tracing for agents and workflows with Zipkin |
32
-
| 7 |[`07_durable_agent_hot_reload.py`](https://github.com/dapr/dapr-agents/blob/main/quickstarts/07_durable_agent_hot_reload.py)| Hot-reload agent configuration at runtime via Dapr Configuration Store |
27
+
| 2 |[`02_durable_agent_workflow.py`](https://github.com/dapr/dapr-agents/blob/main/quickstarts/02_durable_agent_workflow.py)| Run a durable agent triggered programmatically via the Dapr Workflow API, using `trigger_agent` from client code or `call_agent` from within another orchestrator |
28
+
| 3 |[`03_durable_agent_http.py`](https://github.com/dapr/dapr-agents/blob/main/quickstarts/03_durable_agent_http.py)| Run a durable agent backed by Dapr Workflows, exposed over HTTP |
29
+
| 4 |[`04_durable_agent_pubsub.py`](https://github.com/dapr/dapr-agents/blob/main/quickstarts/04_durable_agent_pubsub.py)| Trigger a durable agent via pub/sub instead of HTTP |
30
+
| 5 |[`05_workflow_llm.py`](https://github.com/dapr/dapr-agents/blob/main/quickstarts/05_workflow_llm.py)| Build a deterministic Dapr Workflow that calls LLMs as activities |
| 7 |[`07_durable_agent_tracing.py`](https://github.com/dapr/dapr-agents/blob/main/quickstarts/07_durable_agent_tracing.py)| Enable distributed tracing for agents and workflows with Zipkin |
33
+
| 8 |[`08_durable_agent_hot_reload.py`](https://github.com/dapr/dapr-agents/blob/main/quickstarts/08_durable_agent_hot_reload.py)| Hot-reload agent configuration at runtime via Dapr Configuration Store |
33
34
34
35
See the [quickstarts README](https://github.com/dapr/dapr-agents/tree/main/quickstarts#readme) for full setup instructions including LLM configuration and prerequisites.
0 commit comments