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

Function insert_if_missing

atomic-agent/src/hooks/grok.rs:422–426  ·  view source on GitHub ↗
(raw: &mut Value, key: &str, value: Value)

Source from the content-addressed store, hash-verified

420}
421
422fn insert_if_missing(raw: &mut Value, key: &str, value: Value) {
423 if let Some(obj) = raw.as_object_mut() {
424 obj.entry(key.to_string()).or_insert(value);
425 }
426}
427
428fn uuid_short() -> String {
429 use std::time::{SystemTime, UNIX_EPOCH};

Callers 2

parse_eventMethod · 0.70
normalize_tool_rawFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected