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

Function value_string

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

Source from the content-addressed store, hash-verified

716}
717
718fn value_string(raw: &Value, key: &str) -> Option<String> {
719 raw.get(key)
720 .and_then(Value::as_str)
721 .map(str::to_string)
722 .filter(|s| !s.is_empty())
723}
724
725fn uuid_short() -> String {
726 use std::time::{SystemTime, UNIX_EPOCH};

Callers 1

extract_session_idMethod · 0.70

Calls 2

getMethod · 0.65
is_emptyMethod · 0.45

Tested by

no test coverage detected