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§
- DynAgent
Hook - Cloneable type-erased wrapper for an
AgentHook. - DynTool
Hook - Cloneable type-erased wrapper for a typed
ToolHook. - DynTool
Json Hook - Hooks
- Ordered collection of engine-level hooks.
- Prefixed
Id - Single
Thread Hook - Hook that limits each caller to one active agent prompt at a time.
Traits§
- Agent
Hook - Typed hook for nested agent calls and agent-runner extensions.
- Hook
- Engine-level hook for agent runs and direct tool calls.
- Tool
Background Hook - Tool
Hook - Typed hook for a specific tool’s input and output types.