restatedev/ai-examples
Browse through all AI examples here
Why Restate?
Restate makes building AI workflows and agent easy:- ✅ Recovery from failures - Never lose agent progress again
- ✅ Built-in session management - Store context in Restate’s K/V store
- ✅ Complete observability - Trace every decision and action
- ✅ Composable patterns - From simple agents to complex multi-agent systems
- ✅ Production safety - Approvals, timeouts, rollbacks, and more
LLM & Agent SDK Integrations
Get started quickly by integrating Restate with your favorite LLM and Agent SDKs. Restate works with most AI SDKs that allow you to wrap model calls and tools, enabling durable execution for your AI workloads.Composable AI Patterns
If you prefer to own your control flow and only want to use an LLM SDK for model calls, Restate turns your custom logic into durable, fault-tolerant workflows.Prompt chaining
Build fault-tolerant processing pipelines with automatic retries and recovery.
Tools
Implement recoverable routing and tool execution with Restate.
Multi-Agent Systems
Coordinate multiple AI agents to collaborate on complex tasks and workflows.
Sessions & chat
Build stateful chat sessions with persistent context and concurrency control.
Human-in-the-loop
Integrate human feedback and approval steps into AI workflows and agent decision-making.
Parallelization
Execute multiple tools and agents concurrently with deterministic recovery.
Competitive racing
Start multiple workflows/agents, return the first result, cancel the rest.
Other Resources
Blog posts:- Durable AI Loops: Fault Tolerance across Frameworks and without Handcuffs
- AI Agents should be serverless and durable
- A Durable Coding Agent — with Modal and Restate
