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

# decision • Rust AI Agent SDK

> decision: Set as decision task

# decision

<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 decision task

## Signature

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

### Returns

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