Enable tool-output replay: invoke() will not call the server; it will return recorded tool outputs from the provided trace jsonl in order.
(self, replay_trace_path: str)
| 143 | self._trace_path = str(trace_path) |
| 144 | |
| 145 | def enable_replay(self, replay_trace_path: str) -> None: |
| 146 | """ |
| 147 | Enable tool-output replay: invoke() will not call the server; it will return |
| 148 | recorded tool outputs from the provided trace jsonl in order. |
| 149 | """ |
| 150 | self._replay_events = _read_jsonl(str(replay_trace_path)) |
| 151 | self._replay_idx = 0 |
| 152 | |
| 153 | def _replay_next(self) -> Dict[str, Any]: |
| 154 | if not self._replay_events: |
no test coverage detected