Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / QuotaReservationRequest

Interface: QuotaReservationRequest

Defined in: packages/core/src/l0/spi/quota.ts:57

One admission request, dimensioned for tenant/model/provider rules.

Properties

PropertyTypeDescriptionDefined in
estimateQuotaEstimate-packages/core/src/l0/spi/quota.ts:87
modelstringThe serving model, re-reserved per failover target.packages/core/src/l0/spi/quota.ts:64
providerstringThe adapter id (the left segment of ModelRef), matching the keys of concurrency.perProvider.packages/core/src/l0/spi/quota.ts:62
runId?stringThe run paying for the attempt; observability only.packages/core/src/l0/spi/quota.ts:86
scope?{ account?: string; legalDomain?: string; project?: string; providerAccount?: string; region?: string; sponsor?: string; tenant?: string; }The run's execution scope dimensions (RV4205), stamped by the ctx completion so dimension-pinned QuotaRules can match them; absent on unscoped runs, byte identical to before the field.packages/core/src/l0/spi/quota.ts:76
scope.account?string-packages/core/src/l0/spi/quota.ts:78
scope.legalDomain?string-packages/core/src/l0/spi/quota.ts:80
scope.project?string-packages/core/src/l0/spi/quota.ts:79
scope.providerAccount?string-packages/core/src/l0/spi/quota.ts:82
scope.region?string-packages/core/src/l0/spi/quota.ts:81
scope.sponsor?string-packages/core/src/l0/spi/quota.ts:83
scope.tenant?string-packages/core/src/l0/spi/quota.ts:77
tenant?stringThe tenant of the reservation: the engine's configured tenant, or the run scope's under quota.tenantFrom: 'scope' (RV4205); absent when neither names one.packages/core/src/l0/spi/quota.ts:70