The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
2.1.9
TokenEstimator
Package: flyte.extras
Protocol for records that can estimate their own token count.
Implement this on your record type and the TokenBatcher will
call it automatically when no explicit estimated_tokens is passed
to TokenBatcher.submit.
protocol TokenEstimator()Methods
| Method | Description |
|---|---|
estimate_tokens() |
estimate_tokens()
def estimate_tokens()