Has Hooks • AI Agent SDK

has_hooks: Check if there are any hooks registered for an event.

has_hooks

Method

</div>

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

Check if there are any hooks registered for an event.

Diagram

Allow

Deny

Event Trigger

Hook: has_hooks

Decision

Process

Block

Signature

python
def has_hooks(event: HookEvent) -> bool

Parameters

ParamField HookEvent

No description available.

Returns

ResponseField bool

The result of the operation.

Used By

Source

View on GitHub

praisonaiagents/hooks/registry.py at line 279


Related Documentation