Remove Hook • AI Agent SDK

remove_hook: Remove a hook by ID. Simplified API.

remove_hook

Function

</div>

This function is defined in the registry module.

Remove a hook by ID. Simplified API.

Diagram

Allow

Deny

Event Trigger

Hook: remove_hook

Decision

Process

Block

Signature

python
def remove_hook(hook_id: str) -> bool

Parameters

ParamField str

The hook ID returned by add_hook()

Returns

ResponseField 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 448


Related Documentation