Skip to main content
AgentFlow enables complex multi-step pipelines with routing, parallel execution, and context sharing between steps.
AgentFlow replaces Workflow and Pipeline as the recommended class name. The old names still work as silent aliases.

Quick Start

1

Simple Usage

2

With Configuration


How It Works


Configuration Options

Step Configuration


Common Patterns


Workflow Helpers

Parallel Execution

Conditional Routing

Loop Pattern


Best Practices

Store intermediate results in context rather than return values.
Use onError and maxRetries for resilient flows.
Skip steps conditionally based on context state.

Backward Compatibility

All old names work as silent aliases with no deprecation warnings.

AgentTeam

Multi-agent orchestration

AgentOS

Deploy as web service

Workflow Hooks

Lifecycle hooks for workflows