async-bulkhead-llm 3.5.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +159 -19
- package/dist/cjs/index.cjs +195 -23
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +196 -24
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +146 -3
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -11,9 +11,12 @@ export type TextContentBlock = {
|
|
|
11
11
|
/**
|
|
12
12
|
* A non-text content block (image, tool_result, document, etc.).
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
* multimodal requests should be treated as a lower
|
|
16
|
-
*
|
|
14
|
+
* By default, built-in estimators ignore non-text blocks — token
|
|
15
|
+
* estimates for multimodal requests should then be treated as a lower
|
|
16
|
+
* bound. To charge a fixed reservation per opaque block instead, use
|
|
17
|
+
* `createModelAwareTokenEstimator`'s `opaqueBlockTokens` option, or
|
|
18
|
+
* carry a caller-computed total in `LLMRequest.extraInputTokens`, or
|
|
19
|
+
* provide a custom estimator.
|
|
17
20
|
*/
|
|
18
21
|
export type OpaqueContentBlock = {
|
|
19
22
|
type: string;
|
|
@@ -42,11 +45,46 @@ export type LLMRequest = {
|
|
|
42
45
|
model?: string;
|
|
43
46
|
messages: LLMMessage[];
|
|
44
47
|
max_tokens?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Optional system prompt (v3.7). Counted by the built-in estimators
|
|
50
|
+
* exactly like message content: a plain string, or an array of content
|
|
51
|
+
* blocks (text blocks counted by characters, non-text blocks subject
|
|
52
|
+
* to the model-aware estimator's `opaqueBlockTokens` surcharge).
|
|
53
|
+
*
|
|
54
|
+
* Before v3.7, callers had to fold the system prompt into a synthetic
|
|
55
|
+
* message for it to participate in estimation — which also distorted
|
|
56
|
+
* events, logs, and deduplication keys. Carry it here instead.
|
|
57
|
+
*/
|
|
58
|
+
system?: string | ContentBlock[];
|
|
59
|
+
/**
|
|
60
|
+
* Additional input tokens the character-based estimators cannot see
|
|
61
|
+
* (v3.7) — e.g. provider-side cost of tool schemas kept outside
|
|
62
|
+
* `messages`, or media priced by out-of-band rules. Built-in
|
|
63
|
+
* estimators add this verbatim to their input estimate; custom
|
|
64
|
+
* estimators may honor or ignore it.
|
|
65
|
+
*
|
|
66
|
+
* Must be a non-negative integer when present. Participates in the
|
|
67
|
+
* default deduplication key like any other request field, so requests
|
|
68
|
+
* differing only here are never conflated.
|
|
69
|
+
*/
|
|
70
|
+
extraInputTokens?: number;
|
|
45
71
|
};
|
|
46
72
|
export type TokenEstimate = {
|
|
47
73
|
input: number;
|
|
48
74
|
maxOutput: number;
|
|
49
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
* Exact token reservation the bulkhead will use for admission.
|
|
78
|
+
*
|
|
79
|
+
* `null` is returned by `bulkhead.estimate()` when `tokenBudget` is not
|
|
80
|
+
* configured, because no token reservation participates in admission in
|
|
81
|
+
* that mode.
|
|
82
|
+
*/
|
|
83
|
+
export type LLMReservationEstimate = {
|
|
84
|
+
readonly input: number;
|
|
85
|
+
readonly maxOutput: number;
|
|
86
|
+
readonly reserved: number;
|
|
87
|
+
};
|
|
50
88
|
export type TokenEstimator = (request: LLMRequest) => TokenEstimate;
|
|
51
89
|
/**
|
|
52
90
|
* Actual token usage returned by the provider after a call completes.
|
|
@@ -108,6 +146,22 @@ export type LLMRejectDetail = {
|
|
|
108
146
|
/** Options accepted by `acquire()` / `run()` (base options + priority). */
|
|
109
147
|
export type LLMAcquireOptions = AcquireOptions & {
|
|
110
148
|
priority?: LLMPriority;
|
|
149
|
+
/**
|
|
150
|
+
* Per-call token reservation override (v3.7).
|
|
151
|
+
*
|
|
152
|
+
* When provided and `tokenBudget` is configured, admission reserves
|
|
153
|
+
* `input + maxOutput` from this value verbatim and the bulkhead's
|
|
154
|
+
* estimator is not consulted for this call. Intended for callers —
|
|
155
|
+
* typically gateways — that already compute a more accurate estimate
|
|
156
|
+
* from the full provider request (tool schemas, response formats,
|
|
157
|
+
* provider-priced media) than any character-ratio estimator could.
|
|
158
|
+
*
|
|
159
|
+
* Both fields must be non-negative integers. Ignored when
|
|
160
|
+
* `tokenBudget` is not configured (no reservation participates in
|
|
161
|
+
* admission in that mode). Not reflected by `estimate()`, which
|
|
162
|
+
* always previews the estimator path.
|
|
163
|
+
*/
|
|
164
|
+
reservation?: TokenEstimate;
|
|
111
165
|
};
|
|
112
166
|
export declare class LLMBulkheadRejectedError extends Error {
|
|
113
167
|
readonly reason: LLMRejectReason;
|
|
@@ -175,6 +229,8 @@ export type LLMEventMap = {
|
|
|
175
229
|
/** Fired after a request is admitted (slot + budget acquired). */
|
|
176
230
|
admit: {
|
|
177
231
|
request: LLMRequest;
|
|
232
|
+
admissionId: string;
|
|
233
|
+
priority: LLMPriority;
|
|
178
234
|
reservedTokens: number;
|
|
179
235
|
};
|
|
180
236
|
/** Fired when a request is rejected at any stage. */
|
|
@@ -202,10 +258,38 @@ export type LLMEventMap = {
|
|
|
202
258
|
*/
|
|
203
259
|
release: {
|
|
204
260
|
request: LLMRequest;
|
|
261
|
+
admissionId: string;
|
|
262
|
+
priority: LLMPriority;
|
|
205
263
|
reservedTokens: number;
|
|
264
|
+
/** Tokens held immediately before release returned them. */
|
|
265
|
+
heldTokens: number;
|
|
206
266
|
refundedTokens: number;
|
|
267
|
+
/** Last emitted usage-event sequence for this admission. */
|
|
268
|
+
usageSequence: number;
|
|
207
269
|
usage?: TokenUsage;
|
|
208
270
|
};
|
|
271
|
+
/**
|
|
272
|
+
* Fired after an effective cumulative `reportUsage()` update.
|
|
273
|
+
*
|
|
274
|
+
* Stale or duplicate reports that do not increase either cumulative
|
|
275
|
+
* usage field are ignored and do not emit an event. `sequence` starts at
|
|
276
|
+
* 1 per admission and increases monotonically, allowing external
|
|
277
|
+
* coordinators to reject duplicate or out-of-order updates.
|
|
278
|
+
*/
|
|
279
|
+
usage: {
|
|
280
|
+
request: LLMRequest;
|
|
281
|
+
admissionId: string;
|
|
282
|
+
priority: LLMPriority;
|
|
283
|
+
sequence: number;
|
|
284
|
+
reservedTokens: number;
|
|
285
|
+
previousHeldTokens: number;
|
|
286
|
+
heldTokens: number;
|
|
287
|
+
deltaTokens: number;
|
|
288
|
+
usage: TokenUsage;
|
|
289
|
+
outputCap: number | null;
|
|
290
|
+
outputRemaining: number | null;
|
|
291
|
+
overReservation: boolean;
|
|
292
|
+
};
|
|
209
293
|
/** Fired when a request joins an existing in-flight call via dedup. */
|
|
210
294
|
dedup: {
|
|
211
295
|
request: LLMRequest;
|
|
@@ -377,6 +461,14 @@ export type LLMBulkheadOptions = {
|
|
|
377
461
|
* configured (there is no reservation to measure against).
|
|
378
462
|
*/
|
|
379
463
|
export type UsageReport = {
|
|
464
|
+
/** Stable identifier of the admission this usage belongs to. */
|
|
465
|
+
admissionId: string;
|
|
466
|
+
/**
|
|
467
|
+
* Last effective usage-update sequence for this admission.
|
|
468
|
+
* Starts at 0 before any effective report, increments only when either
|
|
469
|
+
* cumulative usage field increases, and remains stable for stale reports.
|
|
470
|
+
*/
|
|
471
|
+
sequence: number;
|
|
380
472
|
/** Original pre-admission reservation (0 when budget disabled). */
|
|
381
473
|
reserved: number;
|
|
382
474
|
/** Tokens currently held against the budget for this request. */
|
|
@@ -392,6 +484,10 @@ export type UsageReport = {
|
|
|
392
484
|
};
|
|
393
485
|
/** Context passed to `run()` callbacks for mid-flight usage reporting. */
|
|
394
486
|
export type LLMRunContext = {
|
|
487
|
+
/** Stable identifier for this successful admission. */
|
|
488
|
+
readonly admissionId: string;
|
|
489
|
+
/** Exact reservation used at admission, or `null` without a token budget. */
|
|
490
|
+
readonly reservation: LLMReservationEstimate | null;
|
|
395
491
|
reportUsage(usage: TokenUsage): UsageReport;
|
|
396
492
|
};
|
|
397
493
|
/**
|
|
@@ -415,11 +511,17 @@ export type LLMRunContext = {
|
|
|
415
511
|
* usage is used for the final refund.
|
|
416
512
|
*/
|
|
417
513
|
export type LLMToken = {
|
|
514
|
+
/** Stable identifier for this successful admission. */
|
|
515
|
+
readonly admissionId: string;
|
|
516
|
+
/** Exact reservation used at admission, or `null` without a token budget. */
|
|
517
|
+
readonly reservation: LLMReservationEstimate | null;
|
|
418
518
|
release(usage?: TokenUsage): void;
|
|
419
519
|
reportUsage(usage: TokenUsage): UsageReport;
|
|
420
520
|
};
|
|
421
521
|
export type LLMAcquireResult = {
|
|
422
522
|
ok: true;
|
|
523
|
+
admissionId: string;
|
|
524
|
+
reservation: LLMReservationEstimate | null;
|
|
423
525
|
token: LLMToken;
|
|
424
526
|
} | {
|
|
425
527
|
ok: false;
|
|
@@ -440,8 +542,33 @@ export declare function extractTextLength(content: string | ContentBlock[]): num
|
|
|
440
542
|
*
|
|
441
543
|
* Accuracy: ±25% for English prose.
|
|
442
544
|
* Suitable for load-shedding; not suitable for cost accounting.
|
|
545
|
+
*
|
|
546
|
+
* v3.7: counts `request.system` alongside message content and adds
|
|
547
|
+
* `request.extraInputTokens` verbatim. Non-text blocks still contribute
|
|
548
|
+
* zero characters (use the model-aware estimator's `opaqueBlockTokens`
|
|
549
|
+
* for per-block surcharges).
|
|
443
550
|
*/
|
|
444
551
|
export declare function naiveTokenEstimator(request: LLMRequest): TokenEstimate;
|
|
552
|
+
/**
|
|
553
|
+
* Surcharge policy for opaque (non-text) content blocks (v3.7).
|
|
554
|
+
*
|
|
555
|
+
* - `number` — every opaque block reserves this many input tokens.
|
|
556
|
+
* - `{ default?, byType? }` — per-`block.type` surcharges with an
|
|
557
|
+
* optional fallback for types not listed; unlisted types with no
|
|
558
|
+
* `default` contribute 0.
|
|
559
|
+
*
|
|
560
|
+
* All values must be non-negative integers. A block is "opaque" unless
|
|
561
|
+
* it is a well-formed text block (`type: "text"` with a string `text`)
|
|
562
|
+
* — malformed text blocks are treated as opaque, which errs toward
|
|
563
|
+
* over-reservation. Applies to blocks in `messages[].content` and
|
|
564
|
+
* `system` arrays.
|
|
565
|
+
*/
|
|
566
|
+
export type OpaqueBlockTokens = number | {
|
|
567
|
+
/** Fallback surcharge for opaque types without a `byType` entry. */
|
|
568
|
+
default?: number;
|
|
569
|
+
/** Per-block-type surcharges, keyed by `block.type`. */
|
|
570
|
+
byType?: Record<string, number>;
|
|
571
|
+
};
|
|
445
572
|
export type ModelAwareEstimatorOptions = {
|
|
446
573
|
/**
|
|
447
574
|
* Model string used for ratio lookup when the request does not
|
|
@@ -459,6 +586,17 @@ export type ModelAwareEstimatorOptions = {
|
|
|
459
586
|
* The estimator falls back to the naive 4.0 ratio when this fires.
|
|
460
587
|
*/
|
|
461
588
|
onUnknownModel?: ((model: string) => void) | undefined;
|
|
589
|
+
/**
|
|
590
|
+
* Input-token surcharge for opaque (non-text) content blocks (v3.7).
|
|
591
|
+
*
|
|
592
|
+
* Without this, opaque blocks contribute 0 input tokens — an
|
|
593
|
+
* image-heavy request estimates as nearly free, which is the wrong
|
|
594
|
+
* direction for admission control. A flat conservative number (e.g.
|
|
595
|
+
* 2048 per block) or a per-type map converts each opaque block into a
|
|
596
|
+
* fixed reservation. Validated at estimator creation. Omitted:
|
|
597
|
+
* surcharge disabled (previous behavior).
|
|
598
|
+
*/
|
|
599
|
+
opaqueBlockTokens?: OpaqueBlockTokens | undefined;
|
|
462
600
|
};
|
|
463
601
|
/**
|
|
464
602
|
* Estimates token usage using per-model character ratios.
|
|
@@ -468,10 +606,14 @@ export type ModelAwareEstimatorOptions = {
|
|
|
468
606
|
*
|
|
469
607
|
* v2: respects `request.model` when present, falling back to `defaultModel`.
|
|
470
608
|
* v2: handles multimodal content (text blocks counted, others ignored).
|
|
609
|
+
* v3.7: counts `request.system`, adds `request.extraInputTokens`
|
|
610
|
+
* verbatim, and applies the `opaqueBlockTokens` surcharge (when
|
|
611
|
+
* configured) to every non-text block in messages and system.
|
|
471
612
|
*/
|
|
472
613
|
export declare function createModelAwareTokenEstimator(opts?: ModelAwareEstimatorOptions): TokenEstimator;
|
|
473
614
|
export declare function createModelAwareTokenEstimator(overrides?: Record<string, number>, opts?: ModelAwareEstimatorOptions): TokenEstimator;
|
|
474
615
|
export declare function createLLMBulkhead(opts: LLMBulkheadOptions): {
|
|
616
|
+
estimate: (request: LLMRequest) => LLMReservationEstimate | null;
|
|
475
617
|
acquire: (request: LLMRequest, ao?: LLMAcquireOptions) => Promise<LLMAcquireResult>;
|
|
476
618
|
run: <T>(request: LLMRequest, fn: (signal?: BulkheadSignal, ctx?: LLMRunContext) => Promise<T>, ao?: LLMAcquireOptions & {
|
|
477
619
|
getUsage?: (result: T) => TokenUsage | undefined;
|
|
@@ -504,6 +646,7 @@ export declare function createLLMBulkhead(opts: LLMBulkheadOptions): {
|
|
|
504
646
|
}) => Promise<T>;
|
|
505
647
|
wouldAdmit: (request: LLMRequest, opts?: {
|
|
506
648
|
priority?: LLMPriority;
|
|
649
|
+
reservation?: TokenEstimate;
|
|
507
650
|
}) => {
|
|
508
651
|
admit: boolean;
|
|
509
652
|
reason?: LLMRejectReason;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,KAAK,EAEV,KAAK,YAAY,IAAI,gBAAgB,EACtC,MAAM,mBAAmB,CAAC;AAI3B,KAAK,cAAc,GAAG,WAAW,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;AAM5D;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,KAAK,EAEV,KAAK,YAAY,IAAI,gBAAgB,EACtC,MAAM,mBAAmB,CAAC;AAI3B,KAAK,cAAc,GAAG,WAAW,CA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