Failure

data class Failure(val toolName: String, val error: ToolException) : ToolResult

Represents a failure that occurred during the execution of a tool.

This class is a concrete implementation of the ToolResult interface, used to encapsulate the details of an error that arose while executing a tool. It includes the name of the tool that experienced the failure and the associated ToolException containing error information.

Constructors

Link copied to clipboard
constructor(toolName: String, error: ToolException)

Properties

Link copied to clipboard

The ToolException representing the error details.

Link copied to clipboard
open override val toolName: String

The name of the tool where the failure occurred.