(mut self, prompt: &str)
| 521 | /// Compute and set the prompt hash from the full prompt text. |
| 522 | #[must_use] |
| 523 | pub fn prompt_hash_from_text(mut self, prompt: &str) -> Self { |
| 524 | let hash = blake3::hash(prompt.as_bytes()); |
| 525 | self.prompt_hash = Some(*hash.as_bytes()); |
| 526 | self |
| 527 | } |
| 528 | |
| 529 | /// Set the list of files modified in this turn. |
| 530 | #[must_use] |