Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / QuotaEstimate

Interface: QuotaEstimate

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

The pre-dispatch estimate a reservation is admitted under. Token estimates are heuristic (the engine uses its deterministic four-characters-per-token prompt estimate plus the request's output cap when one is set); reconcile() settles the difference against actual usage inside the same accounting window.

Properties

PropertyTypeDescriptionDefined in
inputTokensnumberHeuristic prompt estimate for the attempt.packages/core/dist/index.d.ts
maxOutputTokens?numberThe request's output token cap, when one is set.packages/core/dist/index.d.ts
requestsnumberWire calls this reservation admits; the engine always sends 1.packages/core/dist/index.d.ts