Skip to main content
Run independent agents at the same time, then merge their outputs in a final step.
The user runs parallel steps for speed, then lets a summariser agent combine the results.

Quick Start

1

Simple Usage

Run two agents together, then summarise with a third.
2

With Configuration

Choose how the group reacts to a failing agent.

How It Works


Parallel Workflow

Run multiple agents at the same time instead of waiting for each one.

Speed Comparison


When to Use


Code


How Results Combine


Failure Handling

Choose how parallel execution responds to failures.

Strategy Examples


Best Practices

parallel gives no benefit when a step depends on an earlier result. Use it for genuinely independent research or data pulls.
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.
Parallel steps return a list in parallel_outputs. Have the summariser combine that list rather than expecting a single string.
from praisonaiagents import parallel uses the friendly re-export, keeping the sample short and matching the SDK’s recommended surface.

Sequential

One step at a time

Routing

Send to the right expert