World's Fair 2025
Breaking the Chain: Agent Continuations for Resumable AI Workflows - Greg Benson
Overview
This talk introduces agent continuations, a new mechanism designed to address key challenges in deploying AI agents in production. It enables agents to pause their execution, save their complete state, and resume later, facilitating human approval workflows and robust error handling for long-running processes. This approach aims to make AI agents more reliable and manageable in complex, distributed environments.
Who should watch
- AI Engineers
- Product Managers
- Builders working with AI agents
- Those facing challenges with human-in-the-loop approval for agent actions
- Teams dealing with long-running or potentially failing agent processes
- Developers building complex, multi-agent systems
Key takeaways
- Agent continuations are inspired by programming language continuations, allowing for the capture and resumption of agent execution state.
- This mechanism supports human-in-the-loop approval by allowing agents to pause before critical actions, await human input, and then resume.
- Agent continuations provide a way to handle failures in long-running agents by saving their state, preventing loss of work and enabling resumption from the point of failure.
- The system leverages the existing messages array used in LLM interactions as a foundation for state saving, adding necessary metadata for resumption.
- A continuation object encapsulates the agent's state, including nested sub-agent states, and can be fully persisted, allowing agent loops to be shut down and restarted later.
- The implementation allows for arbitrary nesting of agents and sub-agents, with the continuation object recursively capturing the state of each level.
- A prototype implementation is available on GitHub, built on the OpenAI Python API, with plans to integrate into existing agent frameworks.
- The approach is novel in its combination of a robust human approval mechanism with support for arbitrary nesting of complex agent structures.
Notable quotes
*Agent continuations allow you to capture the full state of complex agents that can be used both to do arbitrary human and loop processing and also be the basis for reliable agent continuation through taking snapshots.*
*Once you've suspended the agent and you've created the continuation object, you actually don't need to keep any of the agent loops running in your system.*
Unofficial community note. Prefer the recording for nuance.