Render header section
(self)
| 219 | self.render() |
| 220 | |
| 221 | def _render_header(self) -> List[str]: |
| 222 | """Render header section""" |
| 223 | lines = [] |
| 224 | |
| 225 | # Calculate elapsed time |
| 226 | elapsed = "0s" |
| 227 | if self.metrics["start_time"]: |
| 228 | delta = datetime.now() - self.metrics["start_time"] |
| 229 | minutes = delta.seconds // 60 |
| 230 | seconds = delta.seconds % 60 |
| 231 | if minutes > 0: |
| 232 | elapsed = f"{minutes}m{seconds}s" |
| 233 | else: |
| 234 | elapsed = f"{seconds}s" |
| 235 | |
| 236 | status_text = ( |
| 237 | f"▶ {colorize('RUNNING', 'g')} | " |
| 238 | f"Time: {colorize(elapsed, 'c')} | " |
| 239 | f"Iter: {colorize(str(self.metrics['iterations']), 'y')} | " |
| 240 | f"Tasks: {colorize(str(self.metrics['completed_tasks']), 'g')} | " |
| 241 | f"LLM: {colorize(str(self.metrics['llm_calls']), 'bl')} | " |
| 242 | f"Grounding: {colorize(str(self.metrics['grounding_calls']), 'm')}" |
| 243 | ) |
| 244 | |
| 245 | lines.append(" " + status_text) |
| 246 | lines.append(" " + "─" * 60) |
| 247 | |
| 248 | return lines |
| 249 | |
| 250 | def _render_agents(self) -> List[str]: |
| 251 | """Render agents section""" |