(session_id: Option<String>)
| 125 | } |
| 126 | |
| 127 | fn extract_session_id(session_id: Option<String>) -> String { |
| 128 | session_id |
| 129 | .filter(|s| !s.is_empty()) |
| 130 | .unwrap_or_else(|| format!("grok-{}", uuid_short())) |
| 131 | } |
| 132 | |
| 133 | fn parse_json(&self, hook_type: HookType, input: &[u8]) -> AgentResult<Value> { |
| 134 | if input.is_empty() { |