Hooks Config • Rust AI Agent SDK

HooksConfig: Hooks configuration for before/after tool execution

HooksConfig

Defined in the config module.

Rust AI Agent SDK

Hooks configuration for before/after tool execution

Diagram

Allow

Deny

Event Trigger

Hook: HooksConfig

Decision

Process

Block

Fields

NameTypeDescription
enabledboolEnable hooks

Methods

new

rust
fn new() -> Self

Create a new hooks config

enabled

rust
fn enabled(mut self) -> Self

Enable hooks

Source

View on GitHub

praisonai/src/config.rs at line 93


Related Documentation