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

# runner • AI Agent SDK

> Hook Runner for PraisonAI Agents.

# runner

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

Hook Runner for PraisonAI Agents.

Executes hooks registered in the registry, supporting both
Python functions and shell commands.

## Import

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents.hooks import runner
```

## Classes

<CardGroup cols={2}>
  <Card title="HookRunner" icon="brackets-curly" href="../classes/HookRunner">
    Executes hooks from a registry.
  </Card>
</CardGroup>

### Constants

| Name                           | Value |
| ------------------------------ | ----- |
| `EXIT_CODE_SUCCESS`            | `0`   |
| `EXIT_CODE_BLOCKING_ERROR`     | `2`   |
| `EXIT_CODE_NON_BLOCKING_ERROR` | `1`   |
