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. - truncate_
to_ tokens - Truncate
textto at mostmax_tokenstokens.