Skip to main content
Restate makes AI agents and workflows innately resilient. It provides the reliability infrastructure you need to run AI workloads in production, from simple LLM chains to complex multi-agent systems.

AI Agent Quickstart

Build and run your first durable AI agent in minutes.

Why Restate?

Restate makes building AI workflows and agents 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
Whether you’re building chatbots, autonomous agents, or AI-powered workflows, Restate handles the complexity of distributed execution so you can focus on your AI logic.

SDK integrations

Any LLM SDK — write the agent loop yourself with OpenAI, Anthropic, Vercel AI SDK, Google Gen AI, LiteLLM, or any other SDK. Wrap LLM calls in ctx.run() for durability.
https://mintcdn.com/restate-6d46e1dc-mintlify-35bb6672/Mv35KIhrxKnRjfOh/img/ai/sdk-integrations/vercel.svg?fit=max&auto=format&n=Mv35KIhrxKnRjfOh&q=85&s=c3b92cad4feb28f891d9bf944d540fd1

Vercel AI SDK

https://mintcdn.com/restate-6d46e1dc-mintlify-35bb6672/Mv35KIhrxKnRjfOh/img/ai/sdk-integrations/lite-llm_icon.webp?fit=max&auto=format&n=Mv35KIhrxKnRjfOh&q=85&s=199ec75b75d5278b590172dcd89d869b

LiteLLM

Any other SDK

Agent frameworks — higher-level APIs for a faster start.
https://mintcdn.com/restate-6d46e1dc-mintlify-35bb6672/Mv35KIhrxKnRjfOh/img/ai/sdk-integrations/vercel.svg?fit=max&auto=format&n=Mv35KIhrxKnRjfOh&q=85&s=c3b92cad4feb28f891d9bf944d540fd1

Vercel AI SDK

https://mintcdn.com/restate-6d46e1dc-mintlify-35bb6672/Mv35KIhrxKnRjfOh/img/ai/sdk-integrations/openai.webp?fit=max&auto=format&n=Mv35KIhrxKnRjfOh&q=85&s=8b4ef14c8d2d129fa1d9ed56e409f4e3

OpenAI Agents SDK

https://mintcdn.com/restate-6d46e1dc-mintlify-35bb6672/Mv35KIhrxKnRjfOh/img/ai/sdk-integrations/google-adk.png?fit=max&auto=format&n=Mv35KIhrxKnRjfOh&q=85&s=39ec729a254301b95f8ed542d6efe079

Google ADK

https://mintcdn.com/restate-6d46e1dc-mintlify-35bb6672/Mv35KIhrxKnRjfOh/img/ai/sdk-integrations/pydantic-ai.png?fit=max&auto=format&n=Mv35KIhrxKnRjfOh&q=85&s=7db5c4acf279b5f208d2c064112fa933

Pydantic AI

https://mintcdn.com/restate-6d46e1dc-mintlify-35bb6672/Mv35KIhrxKnRjfOh/img/ai/sdk-integrations/langchain.svg?fit=max&auto=format&n=Mv35KIhrxKnRjfOh&q=85&s=a899cb8b5ab038da47206555ed5809af

LangChain

Integrating with other SDKs

Want another integration? Reach out on Discord or Slack.

Getting Started

The following pages give you a tour of how to build durable AI agents and workflows with Restate:

1. Durable Agents

Implement agents that survive crashes and recover automatically. Every LLM call and tool execution is durably persisted.

2. Durable Sessions

Add persistent sessions keyed by ID with built-in concurrency control. Conversation state survives crashes and restarts.

3. Approvals with Pause & Resume

Add resilient human approvals that pause the agent and resume when the response arrives, even across restarts.

4. Multi-Agent Orchestration

Route tasks between specialized agents with durable routing decisions. Coordinate via handoffs, tools, or remote calls.

5. Observability & Control

Inspect agent execution step by step, export traces, and cancel or kill stuck agents.

Implementation Guides

The following pages provide detailed implementation guides for common AI patterns:

Parallel Tool Calls

Workflows

Workflows as Tools

Remote Agents

Racing Agents

Interrupt & Regenerate

Retries & Error Handling

Rollback on Failures

Chat UI Integration

Streaming Responses

Notify when ready