ToolException class final

An exception that a tool throws when execution error occurs.

When this exception is thrown, the agent will not stop working, but will handle the exception according to the BaseTool.handleToolError variable of the tool, and the processing result will be returned to the agent as observation, and printed in red on the console.

Inheritance

Constructors

ToolException({String? message = ''})
An exception that a tool throws when execution error occurs.
const

Properties

code String
The optional code to accommodate the message.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
message String?
The long form message of the exception.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
The stack trace which provides information to the user about the call sequence that triggered an exception
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(covariant LangChainException other) bool
The equality operator.
inherited