Skip to main content

HookRegistry

Defined in the hooks module.
Rust AI Agent SDK Hook registry for managing hooks

Fields

Methods

new

Create a new hook registry

add_hook

Add a hook Parameters:

add_hook_with_matcher

Add a hook with matcher Parameters:

add_definition

Add a hook definition Parameters:

remove_hook

Remove a hook by ID Parameters:

has_hooks

Check if any hooks exist for an event Parameters:

hook_count

Get hook count for an event Parameters:

execute

Execute all hooks for an event Parameters:

execute_async

Execute hooks asynchronously (for future async hooks) Parameters:

Source

View on GitHub

praisonai/src/hooks/mod.rs at line 359

Rust Hooks

Rust Events

Rust Callbacks