SingleBeforeToolCallback:( Â Â Â Â params:{ Â Â Â Â Â Â Â Â args:Record<string,unknown>; Â Â Â Â Â Â Â Â context:Context; Â Â Â Â Â Â Â Â tool:BaseTool; Â Â Â Â }, )=>|Record<string,unknown> |undefined |Promise<Record<string,unknown>|undefined>
A callback that runs before a tool is called.
Type Declaration
( Â Â Â Â params:{ Â Â Â Â Â Â Â Â args:Record<string,unknown>; Â Â Â Â Â Â Â Â context:Context; Â Â Â Â Â Â Â Â tool:BaseTool; Â Â Â Â }, ):|Record<string,unknown> |undefined |Promise<Record<string,unknown>|undefined>
A callback that runs before a tool is called.