AI & Agents
Workflow DevKit provides first-class support for building durable AI agents through the @workflow/ai package. This package integrates with the AI SDK to provide production-ready agent primitives.
Guide
For a complete walkthrough of building AI agents with Workflow DevKit, see the Building Durable AI Agents guide, which covers:
- Converting AI SDK agents to durable agents
- Implementing resumable streams
- Adding sleep and scheduling capabilities
- Human-in-the-loop approval patterns
Core Concepts
API Reference
The @workflow/ai package exports the following:
DurableAgent
The main class for creating AI agents that maintain state across workflow steps, call tools, and handle interruptions.
WorkflowChatTransport
AI SDK transport for reliable message streaming with automatic reconnection and resumption.
Related
- Streaming - How streaming works in Workflow DevKit
- Workflows and Steps - Understanding the execution model
- Hooks & Webhooks - Pausing workflows for external events