phase property

AgentWorkPhase get phase

The lifecycle phase of this status.

Implementation

AgentWorkPhase get phase => switch (this) {
  running => AgentWorkPhase.working,
  success || cancelled => AgentWorkPhase.settled,
  error => AgentWorkPhase.failed,
};