Skip to main content

remove_hook

Function
This function is defined in the registry module.
Remove a hook by ID. Simplified API.

Signature

def remove_hook(hook_id: str) -> bool

Parameters

hook_id
str
required
The hook ID returned by add_hook()

Returns

Returns
bool
True if hook was found and removed, False otherwise

Uses

  • unregister
  • get_default_registry

Source

View on GitHub

praisonaiagents/hooks/registry.py at line 404