Skip to main content

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

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

Branch based on output:

Same Use Case, Different APIs

Shared Features

Both support the same consolidated parameters:

Best Practices

1

Start Simple

Use AgentFlow for simple sequential pipelines. It’s cleaner.
2

Add Patterns

Use route(), parallel(), loop() for complex flows.
3

Use AgentTeam for DAGs

When you need explicit task dependencies or hierarchical validation.
4

Don't Mix

Pick one pattern per workflow. Don’t nest AgentTeam in AgentFlow.

AgentFlow

Deep dive into AgentFlow patterns

AgentTeam

Task-based orchestration details

Migration Guide

v1.0 naming changes

Agents

Agent configuration reference