Skip to main content

Module hooks

Module hooks 

Source
Expand description

Agent lifecycle hooks for customization.

Hooks allow you to intercept and customize agent behavior at key points:

§Built-in Implementations

Structs§

AllowAllHooks
Hooks that allow all tools without confirmation
DefaultHooks
Default hooks implementation that uses tier-based decisions
LoggingHooks
Hooks that log all events (useful for debugging)

Enums§

ToolDecision
Decision returned by pre-tool hooks

Traits§

AgentHooks
Lifecycle hooks for the agent loop. Implement this trait to customize agent behavior.