Type Alias: ToolMiddleware
ToolMiddleware = (
call,next) =>Promise<ToolOutcome>
Defined in: packages/client/src/types.ts:73
Wraps every tool call: observe, redact, block or rewrite results.
Call next() to run the tool (or the next middleware).
Parameters
call
next
() => Promise<ToolOutcome>
Returns
Promise<ToolOutcome>