ToolFailure class

Thrown by AiChatTool.run to hand the model a specific reason for failing.

Any other exception is reported generically instead: it may carry internals -- urls with tokens, schema, file paths -- that shouldn't reach the model, let alone the conversation history summarised from its answer.

Implemented types

Constructors

ToolFailure(String message)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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