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