(response: &Value)
| 565 | } |
| 566 | |
| 567 | fn extract_duration_ms(response: &Value) -> Option<u64> { |
| 568 | response |
| 569 | .get("duration_ms") |
| 570 | .or_else(|| response.get("duration")) |
| 571 | .and_then(Value::as_u64) |
| 572 | } |
| 573 | |
| 574 | fn extract_file_path(tool_input: Option<&Value>, response: &Value) -> Option<String> { |
| 575 | for value in [tool_input, Some(response)].into_iter().flatten() { |
no test coverage detected