A callback that runs after a tool is called.
The arguments to the tool.
Context for the tool call.
The response from the tool.
The tool to be called.
When present, the returned record will be used as tool result.
A callback that runs after a tool is called.