| 243 | #[derive(Debug, Deserialize)] |
| 244 | #[allow(dead_code)] |
| 245 | struct AfterToolInput { |
| 246 | #[serde(default)] |
| 247 | session_id: Option<String>, |
| 248 | |
| 249 | /// Name of the tool that executed |
| 250 | #[serde(default)] |
| 251 | tool_name: Option<String>, |
| 252 | |
| 253 | /// Unique call identifier for this tool invocation |
| 254 | #[serde(default)] |
| 255 | tool_call_id: Option<String>, |
| 256 | |
| 257 | /// Execution status: "completed", "error" |
| 258 | #[serde(default)] |
| 259 | status: Option<String>, |
| 260 | |
| 261 | /// Execution duration in milliseconds |
| 262 | #[serde(default)] |
| 263 | duration: Option<u64>, |
| 264 | |
| 265 | /// Whether this tool modified files on disk |
| 266 | #[serde(default)] |
| 267 | modified_files: Option<bool>, |
| 268 | |
| 269 | /// Truncated tool output (first 500 chars) |
| 270 | #[serde(default)] |
| 271 | tool_output: Option<String>, |
| 272 | |
| 273 | /// Working directory |
| 274 | #[serde(default)] |
| 275 | cwd: Option<String>, |
| 276 | |
| 277 | /// ISO 8601 timestamp |
| 278 | #[serde(default)] |
| 279 | timestamp: Option<String>, |
| 280 | } |
| 281 | |
| 282 | /// Pi agent hook adapter. |
| 283 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected