Expand description
Token estimation utilities
Re-exports from vtcode-commons for backward compatibility.
Functionsยง
- estimate_
tokens - Count the number of tokens in
textusing tiktoken BPE. - format_
token_ count - Format a token count with a compact decimal suffix for transcript labels.
- truncate_
to_ tokens - Truncate
textto at mostmax_tokenstokens.