MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / _get_iteration

Method _get_iteration

scripts/dashboard.py:168–177  ·  view source on GitHub ↗
(self, step_id: str, iteration_number: int)

Source from the content-addressed store, hash-verified

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."""

Callers 1

_process_eventMethod · 0.95

Calls 3

_get_stepMethod · 0.95
AgentIterationClass · 0.85
getMethod · 0.80

Tested by

no test coverage detected