unregister • AI Agent SDK

unregister: Unregister a hook by ID.

unregister

Method

</div>

This is a method of the HookRegistry class in the registry module.

Unregister a hook by ID.

Signature

python
def unregister(hook_id: str) -> bool

Parameters

ParamField str

The hook ID to unregister

Returns

ResponseField bool

True if found and removed, False otherwise

Uses

  • logger.debug

Used By

Source

View on GitHub

praisonaiagents/hooks/registry.py at line 227