Skip to main content

Module hook

Module hook 

Source
Expand description

Hook system for observing and customizing runtime behavior.

Hooks let applications wrap agent and tool execution without changing the agent or tool implementations themselves. Engine-level hooks are registered through EngineBuilder::with_hooks, while typed tool and agent hooks are stored on BaseCtx state and consumed by specific extensions.

Structs§

DynAgentHook
Cloneable type-erased wrapper for an AgentHook.
DynToolHook
Cloneable type-erased wrapper for a typed ToolHook.
DynToolJsonHook
Hooks
Ordered collection of engine-level hooks.
PrefixedId
SingleThreadHook
Hook that limits each caller to one active agent prompt at a time.

Traits§

AgentHook
Typed hook for nested agent calls and agent-runner extensions.
Hook
Engine-level hook for agent runs and direct tool calls.
ToolBackgroundHook
ToolHook
Typed hook for a specific tool’s input and output types.