workflows • Rust AI Agent SDK
Workflow system for PraisonAI
workflows
Rust AI Agent SDK
Workflow system for PraisonAI
This module provides multi-agent workflow patterns:
- AgentTeam: Coordinates multiple agents
- AgentFlow: Defines workflow execution patterns
- Route, Parallel, Loop, Repeat: Workflow patterns
Import
use praisonai::workflows::*;Classes
StepResult
Step result from workflow execution
WorkflowContextWorkflow context passed between agents
AgentTeamAgent team for multi-agent workflows Coordinates multiple agents to work together on tasks.
AgentTeamBuilderBuilder for AgentTeam
AgentFlowAgentFlow – Workflow definition with patterns Defines complex workflow patterns like Route, Parallel, Loop.
RouteRoute pattern – conditional branching
ParallelParallel pattern – concurrent execution
LoopLoop pattern – iterate over items
RepeatRepeat pattern – repeat execution
ProcessProcess type for workflow execution
FlowStepA step in a workflow