pub fn format_token_count(count: usize) -> StringExpand description
Format a token count for human-readable display.
Formats large numbers with k/M suffixes for readability.
§Arguments
count- The token count to format
§Returns
A formatted string representation (e.g., “150.2k”, “1.5M”).
§Examples
use agpm_cli::tokens::format_token_count;
assert_eq!(format_token_count(500), "500");
assert_eq!(format_token_count(1500), "1.5k");
assert_eq!(format_token_count(1500000), "1.5M");