Skip to main content

count_tool_calls

Function count_tool_calls 

Source
pub fn count_tool_calls(path: &Path) -> HashMap<String, i32>
Expand description

Count the tool calls in the transcript at path, by tool name. The file is read line by line, so a long session’s transcript is never held in memory whole. A missing or unreadable file counts nothing, and lines that are not JSON (including invalid UTF-8) are skipped.