(&self, result: &AgentResult)
| 55 | } |
| 56 | |
| 57 | pub(super) fn record_result(&self, result: &AgentResult) { |
| 58 | *write_or_recover(&self.history) = result.messages.clone(); |
| 59 | if !result.verification_reports.is_empty() { |
| 60 | write_or_recover(&self.verification_reports) |
| 61 | .extend(result.verification_reports.clone()); |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | pub(super) async fn save(&self) -> Result<()> { |
| 66 | let store = match &self.session_store { |
no test coverage detected