(self)
| 143 | """Parses structured log events.""" |
| 144 | |
| 145 | def __init__(self): |
| 146 | self.workflow = Workflow() |
| 147 | self._current_step: Optional[Step] = None |
| 148 | self._current_iteration: Optional[AgentIteration] = None |
| 149 | self._current_tool: Optional[Dict[str, Any]] = None |
| 150 | self._call_index: Dict[tuple, Dict[str, Any]] = {} |
| 151 | self._step_index: Dict[str, Step] = {} |
| 152 | self._iteration_index: Dict[tuple, AgentIteration] = {} |
| 153 | |
| 154 | def _get_step(self, step_id: str) -> Step: |
| 155 | step = self._step_index.get(step_id) |