Skip to main content

Documentation Index

Fetch the complete documentation index at: https://restate-6d46e1dc-create-pull-request-patch.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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-create-pull-request-patch/Kwjzqu2pwK5iEueO/img/ai/sdk-integrations/vercel.svg?fit=max&auto=format&n=Kwjzqu2pwK5iEueO&q=85&s=f137ebf32378cc5298c122afd0b9cb16

Vercel AI SDK

https://mintcdn.com/restate-6d46e1dc-create-pull-request-patch/qpodPk9I2Mm-VyAp/img/ai/sdk-integrations/lite-llm_icon.webp?fit=max&auto=format&n=qpodPk9I2Mm-VyAp&q=85&s=f48736c0dd55ac4f97bd0f962f06fda8

LiteLLM

Any other SDK

Agent frameworks — higher-level APIs for a faster start.
https://mintcdn.com/restate-6d46e1dc-create-pull-request-patch/Kwjzqu2pwK5iEueO/img/ai/sdk-integrations/vercel.svg?fit=max&auto=format&n=Kwjzqu2pwK5iEueO&q=85&s=f137ebf32378cc5298c122afd0b9cb16

Vercel AI SDK

https://mintcdn.com/restate-6d46e1dc-create-pull-request-patch/qpodPk9I2Mm-VyAp/img/ai/sdk-integrations/openai.webp?fit=max&auto=format&n=qpodPk9I2Mm-VyAp&q=85&s=3463aae13cf9e01e819a3457c1e3b6dc

OpenAI Agents SDK

https://mintcdn.com/restate-6d46e1dc-create-pull-request-patch/qpodPk9I2Mm-VyAp/img/ai/sdk-integrations/google-adk.png?fit=max&auto=format&n=qpodPk9I2Mm-VyAp&q=85&s=dce5d1975fb19514868fd4b1114815de

Google ADK

https://mintcdn.com/restate-6d46e1dc-create-pull-request-patch/qpodPk9I2Mm-VyAp/img/ai/sdk-integrations/pydantic-ai.png?fit=max&auto=format&n=qpodPk9I2Mm-VyAp&q=85&s=995fd628bd322902c1042ebd5ffdf62b

Pydantic AI

https://mintcdn.com/restate-6d46e1dc-create-pull-request-patch/tEUxHXyHm2Xwmq2R/img/ai/sdk-integrations/langchain.svg?fit=max&auto=format&n=tEUxHXyHm2Xwmq2R&q=85&s=3a202541d9d6ac06bf0442af482ae52b

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