ToolFailure class
A recoverable tool error that is reported back to the model as text.
Throw this from a tool body when the model can fix the problem itself (bad input, stale file, no match). The message should say what went wrong and, where possible, how to fix it.
- Implemented types
Constructors
- ToolFailure(String message)
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited