Tutorial
Learn to build reliable agent pipelines with Stroma, one concept at a time.
Each page builds on the previous one, but they're also designed to work standalone — jump to any topic that interests you.
What you'll learn
| Page | What you'll build |
|---|---|
| Your First Pipeline | A working pipeline in under 10 lines |
| Adding Contracts | Input/output validation at every node boundary |
| Retry & Failures | Automatic failure classification and retry policies |
| Checkpointing | Save progress and resume after crashes |
| Cost Control | Token, dollar, and latency budgets |
| Tracing & Debugging | Inspect every execution attempt |
| Observability Hooks | Plug in external telemetry at node boundaries |
| Shared Context | Share resources across nodes without globals |
| Parallel Execution | Run independent nodes concurrently |
| LangGraph Integration | Apply contracts to existing LangGraph graphs |
Prerequisites
- Python 3.12+
- Basic familiarity with
async/await - Pydantic (installed automatically with Stroma)
Install
uv add stroma
Tip
Every code example on these pages is a complete, runnable script. Copy any snippet, save it as a .py file, and run it.