AgentToolCallStatus enum
The lifecycle of one tool call.
A call moves through these values in place, as one row that changes:
inputStreaming → awaitingApproval → denied
→ running → succeeded | failed | cancelled
A call that needs no approval goes from inputStreaming straight to running. Each value is exactly one of isWorking, needsDecision and isSettled.
Values
- inputStreaming → const AgentToolCallStatus
-
The model is still writing the call's input.
- awaitingApproval → const AgentToolCallStatus
-
The call waits for the reader to allow or deny it.
- denied → const AgentToolCallStatus
-
The reader or the host refused the call.
- running → const AgentToolCallStatus
-
The tool is executing.
- succeeded → const AgentToolCallStatus
-
The tool finished successfully.
- failed → const AgentToolCallStatus
-
The tool failed.
- cancelled → const AgentToolCallStatus
-
The host or the runtime stopped the tool before it finished.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isSettled → bool
-
Whether the call reached a terminal outcome.
no setter
- isWorking → bool
-
Whether the call is making progress without the reader.
no setter
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - needsDecision → bool
-
Whether the call waits for the reader's decision.
no setter
- phase → AgentWorkPhase
-
The lifecycle phase of this status.
no setter
- 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
AgentToolCallStatus> - A constant List of the values in this enum, in order of their declaration.