LLMTokenEstimator
interfacein packageklyn.llm
public interface LLMTokenEstimator
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.

Example

class MyProvider implements LLMProvider, LLMTokenEstimator: ...

Methods
Modifier and Type Member Description
public estimateMessageTokens
estimateMessageTokens(message as LLMThreadMessage) as Int
Estimates the complete wire message, including provider-added metadata.