toolValidationErrorHandler
Defines the handler responsible for processing validation errors that occur when a tool's arguments are invalid. It allows customization of how validation errors are handled during the execution of a tool.
This handler is a suspendable function accepting three parameters:
The tool instance where the validation error occurred.
The invalid arguments associated with the tool.
An error message describing the validation issue.
The handler can be customized to implement any necessary logic for handling these errors, such as logging, capturing metrics, or halting execution based on the severity of the error.