Write raw dict to transcript buffer.
(self, data: dict[str, Any])
| 156 | self.flush() |
| 157 | |
| 158 | def write_raw(self, data: dict[str, Any]) -> None: |
| 159 | """Write raw dict to transcript buffer.""" |
| 160 | self._write_buffer.append(data) |
| 161 | if len(self._write_buffer) >= MAX_FLUSH_BATCH: |
| 162 | self.flush() |
| 163 | |
| 164 | def flush(self) -> None: |
| 165 | """Flush buffered messages to disk.""" |