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
| Parameter | Type |
|---|---|
runLabel | string |
ceilingUsd | number |
authorizedUsd | number |
maxTotalUsd | number |
Returns
SweepBudgetError
Overrides
ts
Error.constructorProperties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
authorizedUsd | readonly | number | Total already authorized before this refusal. | packages/evals/src/envelope.ts:102 |
ceilingUsd | readonly | number | The per-run ceiling that did not fit. | packages/evals/src/envelope.ts:100 |
maxTotalUsd | readonly | number | - | packages/evals/src/envelope.ts:103 |
runLabel | readonly | string | What was about to start, e.g. eval target 'sweep-math'. | packages/evals/src/envelope.ts:98 |