Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
AgentFlow
Defined in the workflows module.
Rust AI Agent SDK
AgentFlow - Workflow definition with patterns Defines complex workflow patterns like Route, Parallel, Loop.
Fields
| Name | Type | Description |
|---|
steps | Vec<FlowStep> | - |
Methods
new
Create a new workflow
step
fn step(mut self, step: FlowStep) -> Self
Add a step
Parameters:
agent
fn agent(self, agent: Agent) -> Self
Add an agent step
Parameters:
run
async fn run(&self, input: &str) -> Result<String>
Execute the workflow
Parameters:
Source
View on GitHub
praisonai/src/workflows/mod.rs at line 313