langchain/callbacks/wandb_callback.py/WandbCallbackHandler/on_tool_error
class WandbCallbackHandler:    def on_tool_error(
        self, error: Union[Exception, KeyboardInterrupt], **kwargs: Any
    ) -> None:
        """Run when tool errors."""
        self.step += 1
        self.errors += 1