Key Features
- Durable Execution: AI agents that survive interruptions and automatically resume
- Multi-Provider Support: Works with Anthropic, OpenAI, Google AI, and xAI
- Automatic Retries: Built-in retry logic for transient failures
- Streaming Support: Real-time streaming responses with state management
- Tool Integration: Use workflow steps as AI tools with automatic persistence
- Type Safety: Full TypeScript support with inference
Installation
Quick Start
Core Components
DurableAgent
Main class for building AI agents with durable execution
Providers
AI model provider integrations (Anthropic, OpenAI, Google, xAI)
AI SDK Compatibility
The Workflow AI SDK is built on top of the Vercel AI SDK and maintains compatibility with its core concepts:- Messages: Use the standard
ModelMessageformat - Tools: Compatible with AI SDK tool definitions
- Streaming: Supports
UIMessageChunkstreaming protocol - Structured Output: Works with the
Outputhelper for typed responses
When to Use
Use the Workflow AI SDK when you need:- AI agents that run for extended periods (hours/days)
- Reliable execution of AI workflows with automatic retries
- Integration with external tools and APIs that need durability
- State management across multiple AI interactions
- Recovery from infrastructure failures or rate limits