Optional ReadonlyoverrunTokens a call's hold may grow above its reservation. One token more
stops the call with cause "overrun". Setting this also turns on
ceiling fitting: when a usage report grows a hold and leaves a class
above maxInFlightTokens or the pool above its budget, calls are
stopped until the holds of the calls still running fit. Requires a
token budget. Non-negative integer.
Optional ReadonlytakeGrace period, in milliseconds, before work that a limits snapshot left
above the new limits is stopped with cause "limits". Calls that
finish inside the grace period are left alone, and a newer snapshot
replaces a take-back that is still waiting. Integer from 0 through
2,147,483,647.
Opt-in policy for stopping admitted work (v3.18). It is part of the limits snapshot: a snapshot without
stophas no policy, and nothing is carried over from the previous revision.Stopping a call always means the same thing. The signal passed to its
run()callback is aborted, the caller's promise rejects withLLMAdmissionStoppedError, and the concurrency slot returns at once. The token hold stays charged until the callback settles, because a local abort does not prove the provider stopped work.run()hands the callback a signal the engine can abort only while a policy is active at admission. An empty object enables neither trigger below but still makes callbacks abortable, which is whatdrain({ stopOnTimeout: true })needs.