(
&self,
hook_type: HookType,
raw_json: Value,
)
| 178 | } |
| 179 | |
| 180 | fn parse_value<T: for<'de> Deserialize<'de>>( |
| 181 | &self, |
| 182 | hook_type: HookType, |
| 183 | raw_json: Value, |
| 184 | ) -> AgentResult<T> { |
| 185 | serde_json::from_value(raw_json).map_err(|e| AgentError::HookParseFailed { |
| 186 | agent: self.name().to_string(), |
| 187 | hook_type: hook_type.as_str().to_string(), |
| 188 | reason: e.to_string(), |
| 189 | }) |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | impl Default for CodexHook { |
no test coverage detected