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

Method extract_tool_name

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

Source from the content-addressed store, hash-verified

70 }
71
72 fn extract_tool_name(raw: &Value) -> Option<String> {
73 value_string(raw, "tool_name")
74 .or_else(|| value_at(raw, &["extra", "tool_name"]))
75 .filter(|s| !s.is_empty())
76 }
77
78 fn extract_tool_use_id(raw: &Value) -> Option<String> {
79 value_string(raw, "tool_use_id")

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