phase property

AgentWorkPhase get phase

The lifecycle phase of this status.

Implementation

AgentWorkPhase get phase => switch (this) {
  inputStreaming || running => AgentWorkPhase.working,
  awaitingApproval => AgentWorkPhase.waiting,
  denied || succeeded || cancelled => AgentWorkPhase.settled,
  failed => AgentWorkPhase.failed,
};