ConfirmationPolicy class final

Which calls wait for a yes. A tool's SideEffect says what it does:

Annotations

Constructors

ConfirmationPolicy({Set<SideEffect> ask = const {SideEffect.irreversible}, bool skipWhenItemNotShown = false})
const

Properties

ask → Set<SideEffect>
The side effects that ask first.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
skipWhenItemNotShown → bool
Runs a call without asking when the list item it names is not shown: for tools that refuse such a number themselves (and answer with the list again).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldAsk(ToolCall call, ConfirmationContext context) → bool
Whether call waits for a yes.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited