> ## 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 Task • Rust AI Agent SDK

> loop_task: Set as loop task

# loop\_task

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**TaskBuilder**](../classes/TaskBuilder) class in the [**task**](../modules/task) module.

Set as loop task

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def loop_task(mut self) -> Self
```

### Returns

<ResponseField name="Returns" type="Self">
  The result of the operation.
</ResponseField>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Tasks" icon="list-check" href="/docs/rust/tasks" />

  <Card title="Rust Execution" icon="play" href="/docs/rust/execution" />

  <Card title="Rust Loops" icon="rotate" href="/docs/rust/loops" />

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