Has Hooks • Rust AI Agent SDK

has_hooks: Check if any hooks exist for an event

has_hooks

Method

</div>

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

Check if any hooks exist for an event

Diagram

Allow

Deny

Event Trigger

Hook: has_hooks

Decision

Process

Block

Signature

python
def has_hooks(&self, event: HookEvent) -> bool

Parameters

ParamField HookEvent

No description available.

Returns

ResponseField bool

The result of the operation.


Related Documentation