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

Method parse_common

atomic-agent/src/hooks/grok.rs:147–153  ·  view source on GitHub ↗
(&self, hook_type: HookType, raw: Value)

Source from the content-addressed store, hash-verified

145 }
146
147 fn parse_common(&self, hook_type: HookType, raw: Value) -> AgentResult<CommonInput> {
148 serde_json::from_value(raw).map_err(|e| AgentError::HookParseFailed {
149 agent: self.name().to_string(),
150 hook_type: hook_type.as_str().to_string(),
151 reason: e.to_string(),
152 })
153 }
154}
155
156impl Default for GrokHook {

Callers 1

parse_eventMethod · 0.80

Calls 2

nameMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected