Tool Exception
Represents a recoverable, model-facing error encountered during the execution of a tool.
This exception is used to signal to the model that an error occurred during tool execution, so it should be descriptive in a way that is understandable to the model.
Parameters
message
A message describing the error encountered.
cause
The underlying cause of the error, if any.
Constructors
Link copied to clipboard
Creates a ToolException with a specified error message and an optional cause.