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

Function has_unhashed

atomic-agent/src/transcript/storage.rs:228–234  ·  view source on GitHub ↗

Check if a change has unhashed agent turn data.

(change: &atomic_core::change::Change)

Source from the content-addressed store, hash-verified

226
227/// Check if a change has unhashed agent turn data.
228pub fn has_unhashed(change: &atomic_core::change::Change) -> bool {
229 change
230 .unhashed
231 .as_ref()
232 .and_then(|v| v.get(UNHASHED_KEY))
233 .is_some()
234}
235
236/// Check if a change's unhashed data has been redacted.
237pub fn is_redacted(change: &atomic_core::change::Change) -> bool {

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected