Readonlyestimatedfalse when the provider counted it — the number the model will charge against.
true when the provider offers no token-counting API and the harness estimated it
from the text, which is a rough figure: code, JSON and non-Latin scripts tokenize
more densely than the estimate assumes. Budget against an estimate with room to
spare; do not reconcile billing against one.
ReadonlytokensThe input tokens this conversation occupies.
A token count, and whether it came from the provider or was estimated.
Example: ```javascript const store = B.ai.state(curEntry.fields.agentState); const size = B.ai.countTokens(agent.getTranscript()); if (!size.estimated && size.tokens > 150000) { store.save(agent); // park it before the window runs out } ```