(self)
| 138 | self.transcript_store.flush() |
| 139 | |
| 140 | def persist_session(self) -> str: |
| 141 | self.flush_transcript() |
| 142 | path = save_session( |
| 143 | StoredSession( |
| 144 | session_id=self.session_id, |
| 145 | messages=tuple(self.mutable_messages), |
| 146 | input_tokens=self.total_usage.input_tokens, |
| 147 | output_tokens=self.total_usage.output_tokens, |
| 148 | ) |
| 149 | ) |
| 150 | return str(path) |
| 151 | |
| 152 | def _format_output(self, summary_lines: list[str]) -> str: |
| 153 | if self.config.structured_output: |
no test coverage detected