MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / extract_duration_ms

Function extract_duration_ms

atomic-agent/src/hooks/codex.rs:567–572  ·  view source on GitHub ↗
(response: &Value)

Source from the content-addressed store, hash-verified

565}
566
567fn 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
574fn extract_file_path(tool_input: Option<&Value>, response: &Value) -> Option<String> {
575 for value in [tool_input, Some(response)].into_iter().flatten() {

Callers 1

normalize_tool_rawFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected