clear • AI Agent SDK

clear: Clear all hooks or hooks for a specific event.

clear

Method

</div>

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

Clear all hooks or hooks for a specific event.

Signature

python
def clear(event: Optional[HookEvent]) -> Any

Parameters

ParamField Optional[HookEvent]

Optional event to clear hooks for

Returns

ResponseField Any

The result of the operation.

Source

View on GitHub

praisonaiagents/hooks/registry.py at line 288