ExecuteToolHandler
Handler for executing tools with customizable behaviors for tool calls, validation errors, failures, and results.
This class provides properties that allow defining specific behavior during different stages of a tool's execution process.
Properties
A customizable handler invoked when a tool call fails during execution. Defines the behavior for responding to a failure by providing access to the failed tool, its arguments, and the associated exception. This allows for logging, error handling, or recovery strategies to be applied.
A variable of type ToolCallHandler used to handle tool call operations. It provides a mechanism for executing specific logic when a tool is called with the given arguments.
A variable representing a handler for processing the result of a tool call. The handler is invoked with the tool instance, its arguments, and the result of the tool execution. The result of handling is determined by the specific implementation provided for the ToolCallResultHandler functional interface.
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.