phase property

AgentWorkPhase get phase

The lifecycle phase of this status.

Implementation

AgentWorkPhase get phase => switch (this) {
  pending => AgentWorkPhase.waiting,
  deciding || allowed || running => AgentWorkPhase.working,
  complete || denied => AgentWorkPhase.settled,
  error => AgentWorkPhase.failed,
};