pub fn estimate_tokens(text: &str) -> usizeExpand description
Rough token estimate: ~4 chars per token for English text.
See TokenCounter for pluggable alternatives.
pub fn estimate_tokens(text: &str) -> usizeRough token estimate: ~4 chars per token for English text.
See TokenCounter for pluggable alternatives.