Skip to main content

HookResult

Defined in the hooks module.
Rust AI Agent SDK Result from a hook execution

Fields

Methods

allow

Create an allow result

allow_with_reason

Create an allow result with reason Parameters:

deny

Create a deny result Parameters:

block

Create a block result Parameters:

ask

Create an ask result Parameters:

is_allowed

Check if the result allows execution

is_denied

Check if the result denies execution

with_modified_input

Add modified input Parameters:

with_context

Add additional context Parameters:

suppress

Suppress output

Source

View on GitHub

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

Rust Hooks

Rust Events

Rust Callbacks