Skip to main content

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

WorkflowContext

Workflow context passed between agents

AgentTeam

Agent team for multi-agent workflows Coordinates multiple agents to work together on tasks.

AgentTeamBuilder

Builder for AgentTeam

AgentFlow

AgentFlow - Workflow definition with patterns Defines complex workflow patterns like Route, Parallel, Loop.

Route

Route pattern - conditional branching

Parallel

Parallel pattern - concurrent execution

Loop

Loop pattern - iterate over items

Repeat

Repeat pattern - repeat execution

Process

Process type for workflow execution

FlowStep

A step in a workflow

Rust Workflows

Rust Agent Flow

Rust Agent Team

Rust Process

Rust Flow