MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / prompt_hash_from_text

Method prompt_hash_from_text

atomic-core/src/change/envelope.rs:542–546  ·  view source on GitHub ↗
(mut self, prompt: &str)

Source from the content-addressed store, hash-verified

540 /// Compute and set the prompt hash from the full prompt text.
541 #[must_use]
542 pub fn prompt_hash_from_text(mut self, prompt: &str) -> Self {
543 let hash = blake3::hash(prompt.as_bytes());
544 self.prompt_hash = Some(*hash.as_bytes());
545 self
546 }
547
548 /// Set the list of files modified in this turn.
549 #[must_use]

Calls 2

hashFunction · 0.50
as_bytesMethod · 0.45