Method
agent_started
(
self,
index: int,
label: str,
phase: Optional[str],
key: str = "",
agent_type: str = "",
)
Source from the content-addressed store, hash-verified
| 93 | self._changed() |
| 94 | |
| 95 | def agent_started( |
| 96 | self, |
| 97 | index: int, |
| 98 | label: str, |
| 99 | phase: Optional[str], |
| 100 | key: str = "", |
| 101 | agent_type: str = "", |
| 102 | ) -> AgentRecord: |
| 103 | phase = phase or self._current_phase |
| 104 | record = AgentRecord( |
| 105 | index=index, label=label, phase=phase, key=key, |
| 106 | agent_type=agent_type, started_at=time.monotonic(), |
| 107 | ) |
| 108 | self._phase_for(phase).agents.append(record) |
| 109 | self._changed() |
| 110 | return record |
| 111 | |
| 112 | def agent_finished( |
| 113 | self, |