| 49 | |
| 50 | @dataclass |
| 51 | class PhaseRecord: |
| 52 | title: str |
| 53 | detail: Optional[str] = None |
| 54 | agents: list[AgentRecord] = field(default_factory=list) |
| 55 | |
| 56 | @property |
| 57 | def token_total(self) -> int: |
| 58 | return sum(a.tokens for a in self.agents) |
| 59 | |
| 60 | @property |
| 61 | def done_count(self) -> int: |
| 62 | """Agents that have finished (any non-running status).""" |
| 63 | return sum(1 for a in self.agents if a.status != "running") |
| 64 | |
| 65 | |
| 66 | class WorkflowProgress: |
no outgoing calls
no test coverage detected