Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/evals / SweepBudgetError

Class: SweepBudgetError

Defined in: packages/evals/src/envelope.ts:96

Thrown when authorizing a run's ceiling would exceed the envelope.

Extends

  • Error

Constructors

Constructor

ts
new SweepBudgetError(
   runLabel, 
   ceilingUsd, 
   authorizedUsd, 
   maxTotalUsd): SweepBudgetError;

Defined in: packages/evals/src/envelope.ts:104

Parameters

ParameterType
runLabelstring
ceilingUsdnumber
authorizedUsdnumber
maxTotalUsdnumber

Returns

SweepBudgetError

Overrides

ts
Error.constructor

Properties

PropertyModifierTypeDescriptionDefined in
authorizedUsdreadonlynumberTotal already authorized before this refusal.packages/evals/src/envelope.ts:102
ceilingUsdreadonlynumberThe per-run ceiling that did not fit.packages/evals/src/envelope.ts:100
maxTotalUsdreadonlynumber-packages/evals/src/envelope.ts:103
runLabelreadonlystringWhat was about to start, e.g. eval target 'sweep-math'.packages/evals/src/envelope.ts:98