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

# repeat • Rust AI Agent SDK

> repeat: Create a repeat workflow step Executes the agent a fixed number of times. # Arguments * `agent` - The agent to execute * `times` - Number of times to...

# repeat

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**workflow\_aliases**](../modules/workflow_aliases) module.

Create a repeat workflow step Executes the agent a fixed number of times. # Arguments \* `agent` - The agent to execute \* `times` - Number of times to repeat

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def repeat(agent: Arc<crate::agent::Agent>, times: usize) -> crate::workflows::FlowStep
```

## Parameters

<ParamField query="agent" type="Arc<crate::agent::Agent>" required={true}>
  No description available.
</ParamField>

<ParamField query="times" type="usize" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="crate::workflows::FlowStep">
  The result of the operation.
</ResponseField>

## Source

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