AgentPermissionStatus enum

Status of an in-transcript tool permission.

This is a machine, not a boolean loading flag. Actions are offered only while pending. AgentToolCallStatus merges it with AgentExecutionStatus into one tool-call lifecycle.

Inheritance
Available extensions

Values

pending → const AgentPermissionStatus

Waiting for a human decision.

deciding → const AgentPermissionStatus

A decision was submitted and is being recorded.

allowed → const AgentPermissionStatus

The host accepted this invocation.

running → const AgentPermissionStatus

The approved tool is executing.

complete → const AgentPermissionStatus

The approved tool finished.

denied → const AgentPermissionStatus

The host refused this invocation.

error → const AgentPermissionStatus

Permission or execution failed.

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 a terminal decision or outcome was reached.
no setter
isWorking → bool
Whether the request still occupies the operator: true until a terminal outcome. pending is working (a decision is in flight) but does not keep parameter details open.
no setter
keepsDetailsOpen → bool
Whether parameter details stay open without a reader toggle. pending starts closed.
no setter
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
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<AgentPermissionStatus>
A constant List of the values in this enum, in order of their declaration.