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.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

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.