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.
FlowDisplay
Defined in the Display Types module.
Rust AI Agent SDK
Flow display for workflow visualization
Fields
| Name | Type | Description |
|---|
current_step | usize | Current step index |
total_steps | usize | Total steps |
steps | Vec<String> | Step names |
completed | Vec<bool> | Completed steps |
status | Option<String> | Current status message |
Methods
new
fn new(steps: Vec<String>) -> Self
Create a new flow display
Parameters:
| Name | Type |
|---|
steps | Vec<String> |
complete_step
fn complete_step(&mut self) -> ()
Mark current step as complete and move to next
set_status
fn set_status(&mut self, status: impl Into<String>) -> ()
Set status message
Parameters:
| Name | Type |
|---|
status | impl Into<String> |
progress
fn progress(&self) -> f32
Get progress percentage
is_complete
fn is_complete(&self) -> bool
Check if all steps are complete
Source
View on GitHub
praisonai/src/parity/display_types.rs at line 357