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

# registry • AI Agent SDK

> Hook Registry for PraisonAI Agents.

# registry

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

Hook Registry for PraisonAI Agents.

Manages registration and lookup of hooks for different events.

## Import

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

## Classes

<CardGroup cols={2}>
  <Card title="HookRegistry" icon="brackets-curly" href="../classes/HookRegistry">
    Registry for managing hooks.
  </Card>
</CardGroup>

## Functions

<CardGroup cols={2}>
  <Card title="get_default_registry()" icon="function" href="../functions/get_default_registry">
    Get the default global hook registry.
  </Card>

  <Card title="set_default_registry()" icon="function" href="../functions/set_default_registry">
    Set the default global hook registry.
  </Card>

  <Card title="add_hook()" icon="function" href="../functions/add_hook">
    Register a hook callback. Simplified API.
  </Card>

  <Card title="remove_hook()" icon="function" href="../functions/remove_hook">
    Remove a hook by ID. Simplified API.
  </Card>

  <Card title="has_hook()" icon="function" href="../functions/has_hook">
    Check if any hooks are registered for an event. Simplified API.
  </Card>
</CardGroup>
