klyn.llm.LLMContextUsage.LLMContextUsage
constructor
public LLMContextUsage(tokens as Int, estimated as Boolean, estimatedToolTokens as Int = 0)
Description

Captures accounting without retaining mutable messages.

Parameters
ParameterDescription
tokensOccupied tokens; negative values become zero.
estimatedWhether tokenization is approximate.
estimatedToolTokensApproximate tool-schema contribution.
Example

usage = LLMContextUsage(4000, true, 600)