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

# Hook Decision • Rust AI Agent SDK

> HookDecision: Decision types for hook outputs

# HookDecision

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

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

Decision types for hook outputs

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%

graph TD
    event["Event Trigger"] --> hook["Hook: HookDecision"]
    hook --> decision{"Decision"}
    decision -- "Allow" --> proc["Process"]
    decision -- "Deny" --> block["Block"]
    style hook fill:#189AB4,color:#fff
    style event fill:#8B0000,color:#fff
    style proc fill:#8B0000,color:#fff
    style block fill:#8B0000,color:#fff
```

## Fields

| Name           | Type      | Description                              |
| -------------- | --------- | ---------------------------------------- |
| `Allow`        | `variant` | -                                        |
| `the`          | `variant` | -                                        |
| `operation`    | `variant` | -                                        |
| `to`           | `variant` | -                                        |
| `proceed`      | `variant` | -                                        |
| `default`      | `variant` | Allow the operation to proceed           |
| `Allow`        | `variant` | Allow the operation to proceed           |
| `Deny`         | `variant` | -                                        |
| `the`          | `variant` | -                                        |
| `operation`    | `variant` | -                                        |
| `Deny`         | `variant` | Deny the operation                       |
| `Block`        | `variant` | -                                        |
| `the`          | `variant` | -                                        |
| `operation`    | `variant` | -                                        |
| `Block`        | `variant` | Block the operation (stronger than deny) |
| `Ask`          | `variant` | -                                        |
| `for`          | `variant` | -                                        |
| `user`         | `variant` | -                                        |
| `confirmation` | `variant` | -                                        |
| `Ask`          | `variant` | Ask for user confirmation                |

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Hooks" icon="anchor" href="/docs/rust/hooks" />

  <Card title="Rust Events" icon="bolt" href="/docs/rust/events" />

  <Card title="Rust Callbacks" icon="phone" href="/docs/rust/callbacks" />
</CardGroup>
