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

Method prompt_hash_from_text

atomic-agent/src/envelope.rs:523–527  ·  view source on GitHub ↗
(mut self, prompt: &str)

Source from the content-addressed store, hash-verified

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]

Calls 2

hashFunction · 0.85
as_bytesMethod · 0.45