End a trace for a run.
(self, run: Run)
| 44 | self._on_run_create(run) |
| 45 | |
| 46 | def _end_trace(self, run: Run) -> None: |
| 47 | """End a trace for a run.""" |
| 48 | if not run.parent_run_id: |
| 49 | self._persist_run(run) |
| 50 | self.run_map.pop(str(run.id)) |
| 51 | self._on_run_update(run) |
| 52 | |
| 53 | def on_chat_model_start( |
| 54 | self, |
no test coverage detected