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
def clear(event: Optional[HookEvent]) -> AnyParameters
ParamField
Optional[HookEvent]Optional event to clear hooks for
Returns
ResponseField
AnyThe result of the operation.
Source
View on GitHubpraisonaiagents/hooks/registry.py at line 288