(
&self,
hook_type: HookType,
raw_json: Value,
)
| 193 | } |
| 194 | |
| 195 | fn parse_value<T: for<'de> Deserialize<'de>>( |
| 196 | &self, |
| 197 | hook_type: HookType, |
| 198 | raw_json: Value, |
| 199 | ) -> AgentResult<T> { |
| 200 | serde_json::from_value(raw_json).map_err(|e| AgentError::HookParseFailed { |
| 201 | agent: self.name().to_string(), |
| 202 | hook_type: hook_type.as_str().to_string(), |
| 203 | reason: e.to_string(), |
| 204 | }) |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | impl Default for CodexHook { |
no test coverage detected