public interface LLMTokenEstimator
Optional provider-specific accounting for wire metadata and image budgets. Estimation runs on the session owner and must not perform network or file IO.
class MyProvider implements LLMProvider, LLMTokenEstimator: ...
| Modifier and Type | Member | Description |
|---|---|---|
| public | estimateMessageTokensestimateMessageTokens(message as LLMThreadMessage) as Int |
Estimates the complete wire message, including provider-added metadata. |