Quick Start
1
Create Hierarchical Workflow
2
Start Workflow
How It Works
Configuration Options
These constants are not user-configurable today; they are SDK defaults designed for optimal reliability. Future versions may expose configuration options.
Error Recovery Types
Parse Failures
When: Manager LLM returns invalid JSON
Recovery: Retry with exponential backoff
Max: 3 attempts before abort
Invalid Task IDs
When: Manager selects non-existent task
Recovery: Re-prompt with valid ID list
Max: 3 attempts before abort
Loop File Errors
When: Cannot read loop input file
Recovery: Mark task as failed with error
Visibility: Error shown in TaskOutput
Best Practices
Fail gracefully per branch
Fail gracefully per branch
Isolate errors in parallel and loop steps so one failure does not abort unrelated work.
Surface errors in TaskOutput
Surface errors in TaskOutput
Return structured error details agents and UIs can display instead of silent exceptions.
Combine with hooks for custom recovery
Combine with hooks for custom recovery
Use before/after hooks to retry, notify, or escalate when steps fail.
Test file and CSV loop errors
Test file and CSV loop errors
Verify missing input files produce clear TaskOutput messages before production runs.
Related
Hierarchical Workflows
Manager-based validation and graceful failure handling
Hooks
Custom error handling with hooks

