> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Flow Display • Rust AI Agent SDK

> FlowDisplay: Flow display for workflow visualization

# FlowDisplay

> Defined in the [**Display Types**](../modules/display_types) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

Flow display for workflow visualization

## Fields

| Name           | Type                   | Description            |
| -------------- | ---------------------- | ---------------------- |
| `current_step` | `usize`                | Current step index     |
| `total_steps`  | `usize`                | Total steps            |
| `steps`        | `Vec&lt;String&gt;`    | Step names             |
| `completed`    | `Vec&lt;bool&gt;`      | Completed steps        |
| `status`       | `Option&lt;String&gt;` | Current status message |

## Methods

### `new`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn new(steps: Vec<String>) -> Self
```

Create a new flow display

**Parameters:**

| Name    | Type                |
| ------- | ------------------- |
| `steps` | `Vec&lt;String&gt;` |

### `complete_step`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn complete_step(&mut self) -> ()
```

Mark current step as complete and move to next

### `set_status`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn set_status(&mut self, status: impl Into<String>) -> ()
```

Set status message

**Parameters:**

| Name     | Type                      |
| -------- | ------------------------- |
| `status` | `impl Into&lt;String&gt;` |

### `progress`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn progress(&self) -> f32
```

Get progress percentage

### `is_complete`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn is_complete(&self) -> bool
```

Check if all steps are complete

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/parity/display_types.rs#L357">
  `praisonai/src/parity/display_types.rs` at line 357
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Agent Flow" icon="diagram-project" href="/docs/rust/agent-flow" />

  <Card title="Rust Flow" icon="route" href="/docs/rust/flow" />

  <Card title="Rust Routing" icon="route" href="/docs/rust/routing" />

  <Card title="Rust Conditions" icon="code-branch" href="/docs/rust/conditions" />

  <Card title="Rust Display" icon="display" href="/docs/rust/display" />
</CardGroup>
