Agent Flow
Visual workflow builder for agents
Agent Flow provides a visual way to build complex agent workflows.
Quick Start
- Define Flow
rust use praisonai::AgentFlow; let flow = AgentFlow::new() .start(intake_agent) .then(router_agent) .branch(|result| { if result.contains("technical") { tech_agent } else { general_agent } }) .end(); flow.run("Help me with something").await?;
Flow Components
| Component | Description |
|---|---|
start(agent) | Entry point |
then(agent) | Sequential step |
branch(fn) | Conditional routing |
parallel([agents]) | Run in parallel |
loop(agent) | Repeat until done |