Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

add_hook

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

Signature

def add_hook(
        &mut self,
        event: HookEvent,
        func: impl Fn(&HookInput) -> HookResult + Send + Sync + 'static,
    ) -> &mut Self

Parameters

event
HookEvent
required
No description available.
func
impl Fn(&HookInput
required
No description available.

Returns

Returns
HookResult + Send + Sync + 'static, ) -> &mut Self
The result of the operation.

Rust Hooks

Rust Events

Rust Callbacks