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

Function insert_if_missing

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

Source from the content-addressed store, hash-verified

583}
584
585fn insert_if_missing(raw: &mut Value, key: &str, value: Value) {
586 if let Some(obj) = raw.as_object_mut() {
587 obj.entry(key.to_string()).or_insert(value);
588 }
589}
590
591fn value_string(raw: &Value, key: &str) -> Option<String> {
592 raw.get(key)

Callers 1

normalize_tool_rawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected