Workflow Aliases • Rust AI Agent SDK
Workflow Pattern Aliases
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
Handoff configuration for agent-to-agent transfers
HandoffFiltersHandoff filter configuration
HandoffFilterHandoff filter types
Functions
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 …
Create a parallel workflow step Executes multiple agents concurrently. # Arguments * agents – List of agents to execute in parallel
Create a repeat workflow step Executes the agent a fixed number of times. # Arguments agent – The agent to execute times – Number of times to…
Create a route workflow step Conditionally routes to different agents based on a condition. # Arguments * condition – Function that returns…
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
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. #…