Code 2025
Building durable Agents with Workflow DevKit & AI SDK - Peter Wielander, Vercel
Overview
This talk introduces the Workflow DevKit and AI SDK from Vercel, designed to simplify the process of building durable AI agents. The core thesis is that by adopting a workflow pattern, developers can abstract away the complexities of production deployment, error handling, and observability, allowing them to focus on agent capabilities. The DevKit enables agents to be resumable, reliable, and easily integrated with human-in-the-loop processes.
Who should watch
- AI Engineers
- Product Managers
- Developers building AI-powered applications
- Those struggling with agent reliability and production deployment
- Anyone interested in simplifying agent development workflows
Key takeaways
- The Workflow DevKit provides an orchestration layer that separates agent logic into isolated, retriable steps.
- Integrating the DevKit involves minimal code changes, primarily adding directives to mark functions and steps.
- The system offers built-in durability, resumability, and observability, reducing the need for manual queue and database management.
- Steps within a workflow can be marked with `use step` to ensure they run in isolation, are cached, and can be retried if they fail.
- The DevKit supports features like resumable streams, allowing sessions to continue even after connection loss.
- `sleep` and `webhook` tools enable workflows to pause for extended periods or await external triggers, respectively, without consuming resources.
- Local development is enhanced with a CLI tool (`npx workflow web`) for inspecting workflow runs, inputs, and outputs.
- The framework is designed for flexibility, allowing deployment on various cloud providers and integration with different backend systems.
Notable quotes
*The workflow pattern is essentially a sort of orchestration layer that separates your code into steps that can run in isolation and can be retried.*
*All of those things we are going to do today using only a single library which is the workflow development kit.*
Unofficial community note. Prefer the recording for nuance.