Skip to main content

format_tool_call_counts

Function format_tool_call_counts 

Source
pub fn format_tool_call_counts(counts: &[(String, usize)]) -> String
Expand description

Format a “Tool Call Counts (this session)” section from per-tool invocation counts.

Input: counts — sorted slice of (tool_name, count) from TokenStats::tool_call_counts(). Output: a multi-line string. Returns empty string when counts is empty.

── Tool Call Counts (this session) ──
search_text:        12
get_file_context:    7
get_symbol:          3