Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / QuotaReservationRequest

Interface: QuotaReservationRequest

Defined in: packages/core/dist/index.d.ts

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

Properties

PropertyTypeDescriptionDefined in
estimateQuotaEstimate-packages/core/dist/index.d.ts
modelstringThe serving model, re-reserved per failover target.packages/core/dist/index.d.ts
providerstringThe adapter id (the left segment of ModelRef), matching the keys of concurrency.perProvider.packages/core/dist/index.d.ts
runId?stringThe run paying for the attempt; observability only.packages/core/dist/index.d.ts
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/dist/index.d.ts
scope.account?string-packages/core/dist/index.d.ts
scope.legalDomain?string-packages/core/dist/index.d.ts
scope.project?string-packages/core/dist/index.d.ts
scope.providerAccount?string-packages/core/dist/index.d.ts
scope.region?string-packages/core/dist/index.d.ts
scope.sponsor?string-packages/core/dist/index.d.ts
scope.tenant?string-packages/core/dist/index.d.ts
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/dist/index.d.ts