Set the transcript path if not already set.
(&mut self, path: impl Into<PathBuf>)
| 300 | |
| 301 | /// Set the transcript path if not already set. |
| 302 | pub fn set_transcript_path(&mut self, path: impl Into<PathBuf>) { |
| 303 | if self.transcript_path.is_none() { |
| 304 | self.transcript_path = Some(path.into()); |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | /// Clear the current prompt after recording a turn. |
| 309 | /// |