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.
Signature
def remove_hook(hook_id: str) -> boolParameters
ParamField
strThe hook ID returned by add_hook()
Returns
ResponseField
boolTrue if hook was found and removed, False otherwise
Uses
unregisterget_default_registry
Source
View on GitHubpraisonaiagents/hooks/registry.py at line 448