Skip to main content

Module interceptor

Module interceptor 

Source
Expand description

Tool call interception — hooks that run before tool execution.

ToolCallInterceptor lets users inspect, modify, or log tool calls before the tool’s execute() runs. Common uses:

  • Input sanitization
  • Rate limiting
  • Audit logging
  • Argument validation or transformation

Structs§

PassthroughInterceptor
No-op interceptor — passes tool calls through unchanged.

Traits§

ToolCallInterceptor
Hook that runs before each tool call inside super::ToolNode.