async-bulkhead-llm 3.4.1 → 3.6.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 +209 -21
- package/dist/cjs/index.cjs +171 -21
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +172 -22
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +129 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -47,6 +47,18 @@ export type TokenEstimate = {
|
|
|
47
47
|
input: number;
|
|
48
48
|
maxOutput: number;
|
|
49
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* Exact token reservation the bulkhead will use for admission.
|
|
52
|
+
*
|
|
53
|
+
* `null` is returned by `bulkhead.estimate()` when `tokenBudget` is not
|
|
54
|
+
* configured, because no token reservation participates in admission in
|
|
55
|
+
* that mode.
|
|
56
|
+
*/
|
|
57
|
+
export type LLMReservationEstimate = {
|
|
58
|
+
readonly input: number;
|
|
59
|
+
readonly maxOutput: number;
|
|
60
|
+
readonly reserved: number;
|
|
61
|
+
};
|
|
50
62
|
export type TokenEstimator = (request: LLMRequest) => TokenEstimate;
|
|
51
63
|
/**
|
|
52
64
|
* Actual token usage returned by the provider after a call completes.
|
|
@@ -59,7 +71,17 @@ export type TokenUsage = {
|
|
|
59
71
|
input: number;
|
|
60
72
|
output: number;
|
|
61
73
|
};
|
|
62
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Rejection reasons.
|
|
76
|
+
*
|
|
77
|
+
* `"unshareable_result"` (v3.5) is raised only for deduplication
|
|
78
|
+
* *followers*: the shared call resolved to a single-consumer value
|
|
79
|
+
* (stream, `Response` with a body, async iterable) that cannot be
|
|
80
|
+
* safely handed to more than one caller, and no
|
|
81
|
+
* `deduplication.shareResult` hook was configured. The leader always
|
|
82
|
+
* receives the original result unaffected.
|
|
83
|
+
*/
|
|
84
|
+
export type LLMRejectReason = BaseRejectReason | "budget_limit" | "unshareable_result";
|
|
63
85
|
/**
|
|
64
86
|
* Admission priority.
|
|
65
87
|
*
|
|
@@ -165,6 +187,8 @@ export type LLMEventMap = {
|
|
|
165
187
|
/** Fired after a request is admitted (slot + budget acquired). */
|
|
166
188
|
admit: {
|
|
167
189
|
request: LLMRequest;
|
|
190
|
+
admissionId: string;
|
|
191
|
+
priority: LLMPriority;
|
|
168
192
|
reservedTokens: number;
|
|
169
193
|
};
|
|
170
194
|
/** Fired when a request is rejected at any stage. */
|
|
@@ -192,10 +216,38 @@ export type LLMEventMap = {
|
|
|
192
216
|
*/
|
|
193
217
|
release: {
|
|
194
218
|
request: LLMRequest;
|
|
219
|
+
admissionId: string;
|
|
220
|
+
priority: LLMPriority;
|
|
195
221
|
reservedTokens: number;
|
|
222
|
+
/** Tokens held immediately before release returned them. */
|
|
223
|
+
heldTokens: number;
|
|
196
224
|
refundedTokens: number;
|
|
225
|
+
/** Last emitted usage-event sequence for this admission. */
|
|
226
|
+
usageSequence: number;
|
|
197
227
|
usage?: TokenUsage;
|
|
198
228
|
};
|
|
229
|
+
/**
|
|
230
|
+
* Fired after an effective cumulative `reportUsage()` update.
|
|
231
|
+
*
|
|
232
|
+
* Stale or duplicate reports that do not increase either cumulative
|
|
233
|
+
* usage field are ignored and do not emit an event. `sequence` starts at
|
|
234
|
+
* 1 per admission and increases monotonically, allowing external
|
|
235
|
+
* coordinators to reject duplicate or out-of-order updates.
|
|
236
|
+
*/
|
|
237
|
+
usage: {
|
|
238
|
+
request: LLMRequest;
|
|
239
|
+
admissionId: string;
|
|
240
|
+
priority: LLMPriority;
|
|
241
|
+
sequence: number;
|
|
242
|
+
reservedTokens: number;
|
|
243
|
+
previousHeldTokens: number;
|
|
244
|
+
heldTokens: number;
|
|
245
|
+
deltaTokens: number;
|
|
246
|
+
usage: TokenUsage;
|
|
247
|
+
outputCap: number | null;
|
|
248
|
+
outputRemaining: number | null;
|
|
249
|
+
overReservation: boolean;
|
|
250
|
+
};
|
|
199
251
|
/** Fired when a request joins an existing in-flight call via dedup. */
|
|
200
252
|
dedup: {
|
|
201
253
|
request: LLMRequest;
|
|
@@ -278,6 +330,46 @@ export type DeduplicationOptions = {
|
|
|
278
330
|
* Return an empty string to opt a specific request out of deduplication.
|
|
279
331
|
*/
|
|
280
332
|
keyFn?: (request: LLMRequest) => string;
|
|
333
|
+
/**
|
|
334
|
+
* Fan-out hook for delivering a shared in-flight result to
|
|
335
|
+
* deduplication *followers* (v3.5).
|
|
336
|
+
*
|
|
337
|
+
* Called once per follower with the leader's resolved result; the
|
|
338
|
+
* return value is what that follower receives. The leader always
|
|
339
|
+
* receives the original result — `shareResult` is never called for
|
|
340
|
+
* the leader.
|
|
341
|
+
*
|
|
342
|
+
* Why this exists: without it, followers receive the *same object*
|
|
343
|
+
* the leader does. For plain JSON results that is fine (and remains
|
|
344
|
+
* the default), but single-consumer values — `ReadableStream`,
|
|
345
|
+
* Node `Readable`, async iterables, `Response` bodies — can only be
|
|
346
|
+
* consumed once. Whichever caller reads first wins; the rest get a
|
|
347
|
+
* locked or drained stream. The library cannot tee arbitrary stream
|
|
348
|
+
* types on your behalf, so it provides this seam instead:
|
|
349
|
+
*
|
|
350
|
+
* ```ts
|
|
351
|
+
* // fetch Response: hand each follower an independent clone.
|
|
352
|
+
* // (clone() must be called before any consumer reads the body —
|
|
353
|
+
* // guaranteed here, since fan-out happens at resolution time.)
|
|
354
|
+
* deduplication: { shareResult: (r) => (r as Response).clone() }
|
|
355
|
+
* ```
|
|
356
|
+
*
|
|
357
|
+
* When `shareResult` is provided it is called for **every** follower
|
|
358
|
+
* delivery, including safe (non-stream) results — it is a general
|
|
359
|
+
* fan-out policy, usable e.g. for defensive deep-cloning.
|
|
360
|
+
*
|
|
361
|
+
* If `shareResult` throws, that follower's `run()` rejects with the
|
|
362
|
+
* thrown error as-is; the leader and other followers are unaffected.
|
|
363
|
+
*
|
|
364
|
+
* When `shareResult` is **not** provided and the shared result is
|
|
365
|
+
* detected as single-consumer, followers are rejected with
|
|
366
|
+
* `LLMBulkheadRejectedError("unshareable_result")` rather than being
|
|
367
|
+
* silently handed a stream they cannot read. Detection is shallow:
|
|
368
|
+
* it inspects the result value itself, not nested properties — a
|
|
369
|
+
* stream buried inside `{ stream: ... }` is not detected and will be
|
|
370
|
+
* shared by reference as before.
|
|
371
|
+
*/
|
|
372
|
+
shareResult?: (result: unknown) => unknown;
|
|
281
373
|
};
|
|
282
374
|
export type LLMBulkheadOptions = {
|
|
283
375
|
/**
|
|
@@ -327,6 +419,14 @@ export type LLMBulkheadOptions = {
|
|
|
327
419
|
* configured (there is no reservation to measure against).
|
|
328
420
|
*/
|
|
329
421
|
export type UsageReport = {
|
|
422
|
+
/** Stable identifier of the admission this usage belongs to. */
|
|
423
|
+
admissionId: string;
|
|
424
|
+
/**
|
|
425
|
+
* Last effective usage-update sequence for this admission.
|
|
426
|
+
* Starts at 0 before any effective report, increments only when either
|
|
427
|
+
* cumulative usage field increases, and remains stable for stale reports.
|
|
428
|
+
*/
|
|
429
|
+
sequence: number;
|
|
330
430
|
/** Original pre-admission reservation (0 when budget disabled). */
|
|
331
431
|
reserved: number;
|
|
332
432
|
/** Tokens currently held against the budget for this request. */
|
|
@@ -342,6 +442,10 @@ export type UsageReport = {
|
|
|
342
442
|
};
|
|
343
443
|
/** Context passed to `run()` callbacks for mid-flight usage reporting. */
|
|
344
444
|
export type LLMRunContext = {
|
|
445
|
+
/** Stable identifier for this successful admission. */
|
|
446
|
+
readonly admissionId: string;
|
|
447
|
+
/** Exact reservation used at admission, or `null` without a token budget. */
|
|
448
|
+
readonly reservation: LLMReservationEstimate | null;
|
|
345
449
|
reportUsage(usage: TokenUsage): UsageReport;
|
|
346
450
|
};
|
|
347
451
|
/**
|
|
@@ -365,11 +469,17 @@ export type LLMRunContext = {
|
|
|
365
469
|
* usage is used for the final refund.
|
|
366
470
|
*/
|
|
367
471
|
export type LLMToken = {
|
|
472
|
+
/** Stable identifier for this successful admission. */
|
|
473
|
+
readonly admissionId: string;
|
|
474
|
+
/** Exact reservation used at admission, or `null` without a token budget. */
|
|
475
|
+
readonly reservation: LLMReservationEstimate | null;
|
|
368
476
|
release(usage?: TokenUsage): void;
|
|
369
477
|
reportUsage(usage: TokenUsage): UsageReport;
|
|
370
478
|
};
|
|
371
479
|
export type LLMAcquireResult = {
|
|
372
480
|
ok: true;
|
|
481
|
+
admissionId: string;
|
|
482
|
+
reservation: LLMReservationEstimate | null;
|
|
373
483
|
token: LLMToken;
|
|
374
484
|
} | {
|
|
375
485
|
ok: false;
|
|
@@ -422,6 +532,7 @@ export type ModelAwareEstimatorOptions = {
|
|
|
422
532
|
export declare function createModelAwareTokenEstimator(opts?: ModelAwareEstimatorOptions): TokenEstimator;
|
|
423
533
|
export declare function createModelAwareTokenEstimator(overrides?: Record<string, number>, opts?: ModelAwareEstimatorOptions): TokenEstimator;
|
|
424
534
|
export declare function createLLMBulkhead(opts: LLMBulkheadOptions): {
|
|
535
|
+
estimate: (request: LLMRequest) => LLMReservationEstimate | null;
|
|
425
536
|
acquire: (request: LLMRequest, ao?: LLMAcquireOptions) => Promise<LLMAcquireResult>;
|
|
426
537
|
run: <T>(request: LLMRequest, fn: (signal?: BulkheadSignal, ctx?: LLMRunContext) => Promise<T>, ao?: LLMAcquireOptions & {
|
|
427
538
|
getUsage?: (result: T) => TokenUsage | undefined;
|
|
@@ -434,6 +545,23 @@ export declare function createLLMBulkhead(opts: LLMBulkheadOptions): {
|
|
|
434
545
|
* Default: `""` (single global scope).
|
|
435
546
|
*/
|
|
436
547
|
dedupScope?: string;
|
|
548
|
+
/**
|
|
549
|
+
* Per-call deduplication opt-out (v3.5). Pass `false` to make
|
|
550
|
+
* this call always execute independently — it neither joins an
|
|
551
|
+
* existing in-flight call nor registers itself as joinable.
|
|
552
|
+
*
|
|
553
|
+
* Intended for streaming routes on a bulkhead where dedup is
|
|
554
|
+
* otherwise useful: shared stream results are single-consumer
|
|
555
|
+
* (see `deduplication.shareResult`), so streaming calls can skip
|
|
556
|
+
* dedup here instead of encoding the exemption in a bulkhead-wide
|
|
557
|
+
* `keyFn`.
|
|
558
|
+
*
|
|
559
|
+
* `true` is accepted but cannot enable deduplication when it is
|
|
560
|
+
* disabled at the bulkhead level (the key function and shared
|
|
561
|
+
* state live there); it is treated the same as omitting the
|
|
562
|
+
* option. Ignored by `acquire()`, which never deduplicates.
|
|
563
|
+
*/
|
|
564
|
+
dedup?: boolean;
|
|
437
565
|
}) => Promise<T>;
|
|
438
566
|
wouldAdmit: (request: LLMRequest, opts?: {
|
|
439
567
|
priority?: LLMPriority;
|
|
@@ -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;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,kBAAkB,CAAC;AAMjE;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,YAAY,EAAE,CAAC;CAClC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,UAAU,C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