Flow Display • Rust AI Agent SDK

FlowDisplay: Flow display for workflow visualization

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

rust
fn new(steps: Vec<String>) -> Self

Create a new flow display

Parameters:

NameType
stepsVec&lt;String&gt;

complete_step

rust
fn complete_step(&mut self) -> ()

Mark current step as complete and move to next

set_status

rust
fn set_status(&mut self, status: impl Into<String>) -> ()

Set status message

Parameters:

NameType
statusimpl Into&lt;String&gt;

progress

rust
fn progress(&self) -> f32

Get progress percentage

is_complete

rust
fn is_complete(&self) -> bool

Check if all steps are complete

Source

View on GitHub

praisonai/src/parity/display_types.rs at line 357


Related Documentation