estimatedTokens property
int
get
estimatedTokens
Estimated token count of the built prompt.
Implementation
int get estimatedTokens {
var chars = 0;
for (final section in _sections) {
chars += section.content.length;
}
return (chars / 4).ceil();
}