(self, step_id: str, iteration_number: int)
| 166 | return step |
| 167 | |
| 168 | def _get_iteration(self, step_id: str, iteration_number: int) -> AgentIteration: |
| 169 | key = (step_id, iteration_number) |
| 170 | iteration = self._iteration_index.get(key) |
| 171 | if iteration: |
| 172 | return iteration |
| 173 | step = self._get_step(step_id) |
| 174 | iteration = AgentIteration(number=iteration_number, max=0) |
| 175 | step.iterations.append(iteration) |
| 176 | self._iteration_index[key] = iteration |
| 177 | return iteration |
| 178 | |
| 179 | def parse_line(self, line: str) -> Optional[ParsedEvent]: |
| 180 | """Parse a single log line.""" |
no test coverage detected