Presentation: Slides
Welcome to the workshop on building AI Agents with Dapr!
Dapr is a powerful open-source runtime that simplifies building distributed applications. During this session, you'll get up to speed on Dapr's fundamentals and gain practical experience creating AI agents using dapr-agents.
This workshop is split in two parts:
- guided workshop on building introductory agents
- self-paced advanced workshop
First clone the repo:
git clone https://github.com/pyladiesams/dapr-in-action-may2025
cd dapr-in-action-may2025
- Python 3.10 (recommended) or higher
- Jupyter notebook or jupyter-lab
or
- Google Colab
- Python 3.10 (recommended) or higher
- pip package manager or uv
Run the following code:
uv venv
source .venv/bin/activate
uv sync
Set up a virtual environment using virtualenv:
# Install virtualenv package (typically pre-installed)
pip install virtualenv
# Create virtual environment
python3 -m venv .venv
# Activate virtuale environment (command might differ per OS)
source ./.venv/bin/activate
# Install dependencies
pip install -r requirements.txt
API keys can abe accessed via this privatebin. The password will be shared during the workshop.
The keys will only be available during the workshop. If you want to follow the workshop after, please generate HuggingFace and Currents API key yourself first at https://huggingface.co/ and https://currentsapi.services/en.
If you are using Google Colab, instructions on how the set the secrets is provided in the notebook.
If you are using Jupyter notebook locally, please update helper_secrets.py
file in workshop/introductory_workshop
:
HUGGINGFACE_API_KEY=your_api_key_here
CURRENTS_API_KEY=your_api_key_here
Replace your_api_key_here
with your actual HuggingFace and Currents API key.
If you are using Jupyter notebooks, navigate to workshop/introductory_workshop
and run jupyter notebook
.
If you are using Google Colab, navigate to https://colab.research.google.com/ and import the notebooks in workshop/introductory_workshop
.
If you'd like to also follow the advanced version of this workshop, we need to install a few more dependencies:
Since we'll be using the Dapr CLI the advanced section of the workshop can't be run in a notebook. Refer to the READMEs in each subdirectory on instructions how to run the code in the terminal.
You are all set and ready to begin!
Re-watch this YouTube stream
This workshop was set up by @pyladiesams, Dana Arsovska (Git, LinkedIn) and Marc Duiker (web site).