What problem does it solve?
This Skill solves the problem of orchestrating complex, multi-step AI agent pipelines that need to survive Worker restarts and handle long-running tasks, compensating earlier steps if a later one fails.
Core Features & Use Cases
- Durable Execution: Ensures that multi-step processes survive Worker restarts.
- Long-Running Tasks: Handles tasks that last minutes to hours, beyond the capabilities of Queues.
- Compensating Transactions: Implements saga patterns to compensate earlier steps if a later one fails.
- Sequential Calls: Coordinates sequential AI calls with retry at each step.
- State Machines: Replaces complex state machines in Durable Objects with declarative step definitions.
- Use Case: Imagine you need to process a sequence of tasks that involves classifying, retrieving, generating, and storing data. This Skill can manage this workflow, ensuring each step is retried independently and the overall state persists.
Quick Start
Start a workflow instance for a given project with the parameters 'projectId', 'userId', and 'briefText'.