Durable Execution
Pydantic AI allows you to build durable agents that can preserve their progress across transient API failures and application errors or restarts, and handle long-running, asynchronous, and human-in-the-loop workflows with production-grade reliability. Durable agents have full support for streaming and MCP, with the added benefit of fault tolerance.
Pydantic AI supports eight durable execution solutions, plus a builder for any other engine. Five are co-maintained by the Pydantic and vendor teams:
Additional external SDK integrations:
Capability authors can also move custom hook work into engine activities, steps, or tasks with durable capability operations.
Third-party runtime authors can use the stable durable execution backend builder to integrate another engine without importing Pydantic AI internals.