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

Method extract_transcript_path

atomic-agent/src/hooks/hermes.rs:65–70  ·  view source on GitHub ↗
(raw: &Value)

Source from the content-addressed store, hash-verified

63 }
64
65 fn extract_transcript_path(raw: &Value) -> Option<String> {
66 value_string(raw, "transcript_path")
67 .or_else(|| value_at(raw, &["extra", "transcript_path"]))
68 .or_else(|| value_at(raw, &["extra", "log_path"]))
69 .filter(|s| !s.is_empty())
70 }
71
72 fn extract_tool_name(raw: &Value) -> Option<String> {
73 value_string(raw, "tool_name")

Callers

nothing calls this directly

Calls 3

value_atFunction · 0.85
value_stringFunction · 0.70
is_emptyMethod · 0.45

Tested by

no test coverage detected