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

Function value_string

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

Source from the content-addressed store, hash-verified

177}
178
179fn value_string(raw: &Value, key: &str) -> Option<String> {
180 raw.get(key).and_then(Value::as_str).map(ToOwned::to_owned)
181}
182
183fn value_at(raw: &Value, path: &[&str]) -> Option<String> {
184 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