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

# Is Denied • AI Agent SDK

> is_denied: Check if the result denies execution.

# is\_denied

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

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

Check if the result denies execution.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def is_denied() -> bool
```

### Returns

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

## Used By

* [`HookRunner.is_blocked`](../functions/HookRunner-is_blocked)
* [`HookRunner.get_blocking_reason`](../functions/HookRunner-get_blocking_reason)

## Source

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