(response: &Value)
| 706 | } |
| 707 | |
| 708 | fn extract_duration_ms(response: &Value) -> Option<u64> { |
| 709 | response |
| 710 | .get("duration_ms") |
| 711 | .or_else(|| response.get("duration")) |
| 712 | .and_then(Value::as_u64) |
| 713 | } |
| 714 | |
| 715 | fn extract_file_path(tool_input: Option<&Value>, response: &Value) -> Option<String> { |
| 716 | for value in [tool_input, Some(response)].into_iter().flatten() { |
no test coverage detected