Real-world examples demonstrating DuraGraph capabilities for AI workflow orchestration.
- DuraGraph control plane running
- Python 3.10+ (for Python examples)
- Go 1.21+ (for Go examples)
- Docker & Docker Compose (for infrastructure examples)
-
Start DuraGraph locally:
duragraph dev # → engine + dashboard on http://localhost:8081, embedded Postgres + NATS -
Run your first example:
Python examples are run with
uv— neverpip install, neverpython -m venv. The editable-install path below points at the in-monorepo SDK source (python/); if you only want to run the example,uv add duragraphfrom PyPI works too.cd python/01-hello-world DURAGRAPH_URL=http://localhost:8081 PYTHONUNBUFFERED=1 \ uv run --with-editable ../../../python \ python main.pySee
python/01-hello-world/README.mdfor the full demo cheat sheet (SSH port forwarding, end-to-end run, event-store inspection).
Milestone v0.5 (SDK & Studio MVP):
- ✅ Python Hello World
- ✅ Chatbot with Memory
- ✅ RAG Agent
- ✅ Go Hello World
Milestone v0.8 (Production Ready):
- 🚧 Multi-agent collaboration
- 🚧 Human-in-the-loop workflows
- 🚧 Tool use patterns
- 🚧 Evaluation framework
| Example | Description | Difficulty | Status |
|---|---|---|---|
| 01-hello-world | Minimal worker setup | Beginner | ✅ Complete |
| 02-chatbot | Conversational agent with memory | Beginner | ✅ Complete |
| 03-rag-agent | RAG with vector store | Intermediate | ✅ Complete |
| 04-multi-agent | Agent collaboration | Advanced | 🚧 Planned |
| 05-human-in-loop | Approval workflows | Intermediate | 🚧 Planned |
| 06-tool-use | Function calling | Intermediate | 🚧 Planned |
| 07-evals | Running evaluations | Intermediate | 🚧 Planned |
| Example | Description | Difficulty | Status |
|---|---|---|---|
| 01-hello-world | Minimal Go worker | Beginner | ✅ Complete |
| 02-data-pipeline | High-performance pipeline | Intermediate | 🚧 Planned |
| Example | Description | Status |
|---|---|---|
| local-dev | Complete local development stack | ✅ Complete |
| production | Production-ready configuration | 🚧 Planned |
duragraph-examples/
├── python/
│ ├── 01-hello-world/
│ ├── 02-chatbot/
│ ├── 03-rag-agent/
│ ├── 04-multi-agent/
│ ├── 05-human-in-loop/
│ ├── 06-tool-use/
│ └── 07-evals/
├── go/
│ ├── 01-hello-world/
│ └── 02-data-pipeline/
├── docker-compose/
│ ├── local-dev/
│ └── production/
└── README.md
Examples live in the duragraph monorepo alongside the engine and SDKs:
| Path | Description |
|---|---|
/ |
Core engine (Go) |
python/ |
Python SDK — PyPI: duragraph |
go-sdk/ |
Go SDK — pkg.go.dev |
docs/ |
Documentation site source |
See CONTRIBUTING.md for guidelines.
- Create a new directory under the appropriate language folder
- Include required files:
README.md,main.py/main.go, dependencies file - Test against the latest DuraGraph version
- Submit a PR
Apache 2.0 - See LICENSE for details.