> ## 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.

# Loop • Rust AI Agent SDK

> Loop: Loop pattern - iterate over items

# Loop

> Defined in the [**workflows**](../modules/workflows) module.

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

Loop pattern - iterate over items

## Fields

| Name    | Type                | Description                    |
| ------- | ------------------- | ------------------------------ |
| `agent` | `Arc&lt;Agent&gt;`  | Agent to execute for each item |
| `items` | `Vec&lt;String&gt;` | Items to iterate over          |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/workflows/mod.rs#L348">
  `praisonai/src/workflows/mod.rs` at line 348
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Loops" icon="rotate" href="/docs/rust/loops" />

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