Quick Start
How It Works
Parallel Workflow
Run multiple agents at the same time instead of waiting for each one.Speed Comparison
| Sequential | Parallel | |
|---|---|---|
| Time | 3 seconds | ~1 second |
| Speed | 1x | 3x faster |
When to Use
Code
How Results Combine
Failure Handling
Choose how parallel execution responds to failures.Strategy Examples
Best Practices
Only parallelise independent work
Only parallelise independent work
parallel gives no benefit when a step depends on an earlier result. Use it for genuinely independent research or data pulls.Pick a failure strategy on purpose
Pick a failure strategy on purpose
partial_ok (default) keeps going with what succeeded; fail_fast cancels the rest on the first error; fail_all collects every error. Choose per the cost of missing data.Read results from parallel_outputs
Read results from parallel_outputs
Parallel steps return a list in
parallel_outputs. Have the summariser combine that list rather than expecting a single string.Import parallel from the top level
Import parallel from the top level
from praisonaiagents import parallel uses the friendly re-export, keeping the sample short and matching the SDK’s recommended surface.Related
Sequential
One step at a time
Routing
Send to the right expert

