Skip to main content

registry

AI Agent Hook Registry for PraisonAI Agents. Manages registration and lookup of hooks for different events.

Import

from praisonaiagents.hooks import registry

Classes

HookRegistry

Registry for managing hooks.

Functions

get_default_registry()

Get the default global hook registry.

set_default_registry()

Set the default global hook registry.

add_hook()

Register a hook callback. Simplified API.

remove_hook()

Remove a hook by ID. Simplified API.

has_hook()

Check if any hooks are registered for an event. Simplified API.