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

> HookResult: Result from a hook execution.

# HookResult

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

<Badge color="blue">AI Agent</Badge>

Result from a hook execution.

```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: HookResult"]
    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
```

## Properties

<ResponseField name="decision" type="HookDecision">
  No description available.
</ResponseField>

<ResponseField name="reason" type="Optional">
  No description available.
</ResponseField>

<ResponseField name="modified_input" type="Optional">
  No description available.
</ResponseField>

<ResponseField name="additional_context" type="Optional">
  No description available.
</ResponseField>

<ResponseField name="suppress_output" type="bool">
  No description available.
</ResponseField>

## Methods

<CardGroup cols={2}>
  <Card title="allow()" icon="function" href="../functions/HookResult-allow">
    Create an allow result.
  </Card>

  <Card title="deny()" icon="function" href="../functions/HookResult-deny">
    Create a deny result.
  </Card>

  <Card title="block()" icon="function" href="../functions/HookResult-block">
    Create a block result.
  </Card>

  <Card title="ask()" icon="function" href="../functions/HookResult-ask">
    Create an ask result (requires user confirmation).
  </Card>

  <Card title="is_allowed()" icon="function" href="../functions/HookResult-is_allowed">
    Check if the result allows execution.
  </Card>

  <Card title="is_denied()" icon="function" href="../functions/HookResult-is_denied">
    Check if the result denies execution.
  </Card>
</CardGroup>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/hooks/types.py#L124">
  `praisonaiagents/hooks/types.py` at line 124
</Card>

***

## Related Documentation

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

  <Card title="Hook Events" icon="bolt" href="/docs/features/hook-events" />

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