(&mut self, message: String)
| 901 | } |
| 902 | |
| 903 | pub fn append_transcript(&mut self, message: String) { |
| 904 | if self.transcript.len() >= MAX_CONVERSATION_STATE_HISTORY_LEN { |
| 905 | self.transcript.pop_front(); |
| 906 | } |
| 907 | self.transcript.push_back(message); |
| 908 | } |
| 909 | |
| 910 | /// Restore conversation from a checkpoint's history snapshot |
| 911 | pub fn restore_to_checkpoint(&mut self, checkpoint: &Checkpoint) -> Result<(), eyre::Report> { |
no test coverage detected