A callback that runs before a tool is called.
The arguments to the tool.
Context for the tool call.
The tool to be called.
The tool response. When present, the returned tool response will be used and the framework will skip calling the actual tool.
A callback that runs before a tool is called.