← Browse

Code 2025

From Stateless Nightmares to Durable Agents — Samuel Colvin, Pydantic

Samuel Colvin

Overview

This talk introduces Pydantic AI's integration with durable execution frameworks like Temporal, addressing the challenge of maintaining state and preventing data loss in long-running AI agent workflows. It demonstrates how these frameworks enable agents to recover from failures and resume execution without starting from scratch, significantly improving reliability for complex tasks. The presentation also touches upon Pydantic Evals for model evaluation.

Who should watch

Key takeaways

Notable quotes

*The problem is if this dies either because we have some unreliable endpoint within our system or because we're running in the cloud and Kubernetes decides it wants to scale or whatever it might be. If we run this again, we obviously have to start from scratch.*
*Temporal just returned the result, the kind of cached result that it already had for each of these cases. So we're able to effectively zoom forward to the point where it then continues to to call the LLM.*
*Our deep research agent is actually made up of multiple agents. So we have this plan agent which goes off with a prompt and it returns an instance structured data extraction gives you an instance of this pyantic model which is your plan to run it.*

Watch on YouTube →

Unofficial community note. Prefer the recording for nuance.