ConfirmationPolicy class final
Which calls wait for a yes. A tool's SideEffect says what it does:
- SideEffect.read: nothing outside the conversation;
- SideEffect.recoverable: something the user can see and undo, or still has to complete (a screen, a draft); it runs at once with its status label;
- SideEffect.irreversible: something the app cannot take back (book, cancel, pay, send).
- 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
callwaits for a yes. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited