Skip to main content

workflow_aliases

Rust AI Agent SDK Workflow Pattern Aliases Provides function aliases for workflow patterns matching Python SDK:
  • loop, parallel, repeat, route, when
  • Workflow, Pipeline (aliases for AgentFlow)
  • handoff, handoff_filters, prompt_with_handoff_instructions

Import

use praisonai::parity::workflow_aliases::*;

Classes

HandoffConfig

Handoff configuration for agent-to-agent transfers

HandoffFilters

Handoff filter configuration

HandoffFilter

Handoff filter types

Functions

loop_step()

Create a loop workflow step Creates a loop step with an agent and items to iterate over. # Arguments * agent - The agent to execute for each item *…

parallel()

Create a parallel workflow step Executes multiple agents concurrently. # Arguments * agents - List of agents to execute in parallel

repeat()

Create a repeat workflow step Executes the agent a fixed number of times. # Arguments * agent - The agent to execute * times - Number of times to…

route()

Create a route workflow step Conditionally routes to different agents based on a condition. # Arguments * condition - Function that returns…

when()

Alias for route (matches Python SDK naming) Creates a conditional routing step.

handoff()

Create a handoff to another agent # Arguments * target - Name of the target agent * message - Optional handoff message

handoff_filters()

Create handoff filters

prompt_with_handoff_instructions()

Generate a prompt with handoff instructions Creates a system prompt that includes instructions for handing off to other agents when appropriate. #…

Rust Workflows

Rust Agent Flow

Rust Agent Team

Rust Process

Rust Flow