ToolCallRefused class final

A call of a listed method that did not run, because the agent called a method that is not listed now or waits for approval, or sent arguments that do not fit. A method may throw it too, to refuse a call before it changes any state. message goes to the agent and must be safe to share.

Implemented types

Constructors

ToolCallRefused(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