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

Function value_string

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

Source from the content-addressed store, hash-verified

176}
177
178fn value_string(raw: &Value, key: &str) -> Option<String> {
179 raw.get(key).and_then(Value::as_str).map(ToOwned::to_owned)
180}
181
182fn value_at(raw: &Value, path: &[&str]) -> Option<String> {
183 let mut current = raw;

Callers 5

extract_session_idMethod · 0.70
extract_promptMethod · 0.70
extract_tool_nameMethod · 0.70
extract_tool_use_idMethod · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected