Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/provider / / HeuristicCounterOptions

Interface: HeuristicCounterOptions

Defined in: packages/provider/src/counters/heuristic.ts:19

Options for HeuristicCounter.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
charsPerToken?readonlynumberAverage characters per token. Defaults to 4 (latin-1 estimate).packages/provider/src/counters/heuristic.ts:21
id?readonlystringIdentifier carried on the produced counter.packages/provider/src/counters/heuristic.ts:23
logger?readonly(message, meta?) => voidOptional sink. Defaults to console.warn.packages/provider/src/counters/heuristic.ts:27
modelId?readonlystringOptional model hint surfaced in the WARN message.packages/provider/src/counters/heuristic.ts:25