Skip to main content

HookDefinition

Defined in the hooks module.
Rust AI Agent SDK Hook definition

Fields

Methods

new

Create a new hook definition Parameters:

with_matcher

Set matcher pattern Parameters:

with_name

Set name Parameters:

matches

Check if this hook matches the target Parameters:

execute

Execute the hook Parameters:

Source

View on GitHub

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

Rust Hooks

Rust Events

Rust Callbacks