Agent Orchestration
PraisonAI provides two orchestration patterns for multi-agent systems. Choose based on your mental model.v1.0 Naming:
AgentTeam (formerly AgentTeam) and AgentFlow (formerly Workflow) are the new primary names. Old names still work as silent aliases. See Migration Guide.Quick Decision Guide
Use AgentTeam
- Task-based DAG execution
- Hierarchical with manager agent
- Explicit task-agent assignment
- Complex dependencies
Use AgentFlow
- Simple sequential pipelines
- Pattern-based (Route, Loop, Parallel)
- Workflow composition
- Cleaner syntax
Comparison
| Feature | AgentTeam | AgentFlow |
|---|---|---|
| Mental Model | ”Who does what" | "What happens next” |
| Unit of Work | Task + Agent | Step (Agent/function) |
| Sequential | process="sequential" | Default behavior |
| Parallel | process="parallel" | parallel([...]) |
| Conditional | task.condition={...} | route({...}), when() |
| Loop | task.loop_over="items" | loop(step, over="items") |
| Hierarchical | ✅ manager_llm | ❌ Not available |
| Repeat Until | ❌ Not available | ✅ repeat(step, until=...) |
| Composition | ❌ Not available | ✅ include(workflow=...) |
AgentTeam
Best for task-centric workflows where you think in terms of “who does what task”.Hierarchical Mode
Use a manager agent to validate and coordinate:AgentFlow
Best for flow-centric pipelines where you think in terms of “what happens in sequence”.Patterns
- Route
- Parallel
- Loop
- Repeat
Branch based on output:
Same Use Case, Different APIs
Sequential: Research → Write → Edit
Sequential: Research → Write → Edit
Parallel Execution
Parallel Execution
Shared Features
Both support the same consolidated parameters:| Parameter | Description |
|---|---|
memory | Memory configuration |
planning | Planning mode |
context | Context management |
output | Output configuration |
hooks | Lifecycle callbacks |
autonomy | Agent autonomy |
knowledge | RAG configuration |
guardrails | Validation |
web | Web search/fetch |
reflection | Self-reflection |
caching | Caching |

