Skip to main content

FlowDisplay

Defined in the Display Types module.
Rust AI Agent SDK Flow display for workflow visualization

Fields

NameTypeDescription
current_stepusizeCurrent step index
total_stepsusizeTotal steps
stepsVec<String>Step names
completedVec<bool>Completed steps
statusOption<String>Current status message

Methods

new

fn new(steps: Vec<String>) -> Self
Create a new flow display Parameters:
NameType
stepsVec&lt;String&gt;

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:
NameType
statusimpl Into&lt;String&gt;

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