Skip to main content

Durable AI

View Markdown

Temporal gives AI applications and agents Durable Execution: a Workflow resumes automatically after a crash, a network timeout, or a multi-day wait for a human to approve a step. Temporal shows up in four recurring types of AI system:

Agents. Long-running, stateful agent loops that call LLMs and tools, wait on humans, and pick up exactly where they left off after a failure. Start with the AI Cookbook and the Approval and Entity Workflow patterns.

Processing pipelines. Multi-step data and document pipelines, such as extraction, embedding, or batch inference, that need to fan out, retry failed steps in isolation, and resume without reprocessing completed work. When pipelines share Workers across models, tenants, or urgency levels, use Task Queue Priority and Fairness to run urgent work ahead of bulk work and keep one tenant from starving the others. See the batch processing and QoS and throughput patterns.

Internal agent platforms. Teams building a shared runtime for many agents reuse Temporal's Worker and Task Queue primitives instead of building their own scheduler. See the worker configuration patterns for routing and isolating agent workloads.

Model training. Long-running training and fine-tuning jobs coordinated across GPU resources, with checkpointing and recovery handled by Temporal's Event History instead of custom orchestration code. Start with the long-running activity and parallel-execution patterns.

Looking to use an AI coding assistant to write Temporal code instead? See Develop with AI.

AI Cookbook​

Runnable, step-by-step recipes for building AI systems and agents with Temporal: tool calling, MCP, structured output, human-in-the-loop, and more.

Agent framework integrations​

Temporal integrations for the SDKs and frameworks teams use to build agents. This view is pre-filtered to agent frameworks — browse every integration for the full catalog.

SDK

AI SDK by Vercel

Build AI-powered applications with Durable Execution using the Vercel AI SDK.

Agent framework

Claude Agent SDK

Drive Claude Code agents from durable Temporal Workflows with the Claude Agent SDK.

Agent framework

Deep Agents

Make LangChain Deep Agents durable with Temporal Workflows and Activities.

Agent framework

Google ADK

Run Google ADK agents as durable Temporal Workflows.

Agent framework

Google ADK

Run Google ADK agents as durable Temporal Workflows.

Agent framework

Google ADK

Run Google ADK agents as durable Temporal Workflows.

Agent framework

Google GenAI

Call Google Gemini models durably from Temporal Workflows with the Google Gen AI SDK.

Agent framework

LangGraph

Run LangGraph agent graphs as durable, resumable Temporal Workflows.

Agent framework

Mastra

Build durable AI agents and workflows with the Mastra TypeScript framework.

Agent framework

Microsoft Agent Framework

Run Microsoft Agent Framework agents as durable Temporal Workflows.

Agent framework

OpenAI Agents SDK

Run OpenAI Agents with Durable Execution using Temporal.

Agent framework

OpenAI Agents SDK

Run OpenAI Agents with Durable Execution using Temporal.

Agent framework

Pydantic AI

Build type-safe AI agents with Durable Execution through Pydantic AI.

Agent framework

Spring AI

Build AI-powered Java applications with durable Spring AI tool calls.

Agent framework

Strands Agents

Orchestrate AWS Strands Agents with durable Temporal Workflows.

Agent framework

Strands Agents

Orchestrate AWS Strands Agents with durable Temporal Workflows.

Agent framework

A hand-picked look at samples built with Temporal and AI. Browse the full Code Exchange for more.

Design patterns for AI agents​

Browse the full Design Patterns catalog for more, or jump straight into the AI Cookbook for runnable code.