Interface: EstimatorOptions
Defined in: src/batteries/context/thrift/subtractive_pass.ts:186
Options shared by every entry point in this module that needs to measure a value's token cost — the injected estimator plus the encoding it measures under.
Extended by
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
encoding? | string | The encoding to measure under. Default: DEFAULT_ENCODING. | src/batteries/context/thrift/subtractive_pass.ts:194 |
estimateTokens | EstimateTokensFn | REQUIRED. Measures a rendered string's token cost under encoding, optionally resolved against a live dispatch context. There is no default — this battery ships with no bundled tokenizer, so a caller who omits this gets a clear thrown error naming the option, not a silent guess. | src/batteries/context/thrift/subtractive_pass.ts:192 |