MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / PhaseRecord

Class PhaseRecord

src/workflow/progress.py:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50@dataclass
51class 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
66class WorkflowProgress:

Callers 3

__init__Method · 0.85
start_phaseMethod · 0.85
_phase_forMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected