Skip to main content

Agents

Multi-agent orchestration with sequential, hierarchical, and workflow patterns (parallel fan-out via async_execution=True tasks).

Quick Start

Parameters Table

Core Parameters

Process Types

Valid process values are "sequential", "workflow", and "hierarchical". Any other value (including "parallel") raises ValueError. For parallel fan-out, set async_execution=True on individual Task objects within a "workflow" or "sequential" process.

Consolidated Feature Params

Precedence Ladder

Resolution Order: Instance > Config > Array > Dict > String > Bool > DefaultSame precedence as Agent. Consolidated params propagate to underlying agents.

Usage Forms Table

Presets & Options

Output Presets (Multi-Agent)

Multi-Agent Output

Comprehensive guide to multi-agent output configuration and streaming

Execution Presets (Multi-Agent)

Methods

Common Recipes

Sequential (Default)

Tasks execute one after another in order:

Parallel

Independent tasks execute concurrently. Set async_execution=True on each task inside a workflow (or sequential) process — process="parallel" is not a valid value and raises ValueError:
process accepts only "sequential", "workflow", or "hierarchical". Passing process="parallel" raises a ValueError; parallel fan-out is achieved via async_execution=True on individual Task objects.

Hierarchical

Manager agent delegates to worker agents:

Workflow

Tasks follow explicit dependencies via context:

Async Support

Full async/await support for non-blocking execution:

Shared State

Agents can share state during execution:

Advanced Examples

With Memory

With Custom Completion Checker

With Verbose Logging

See Also