@luxorai/sandbox
Version:
TypeScript SDK for Luxor Sandbox: cloud sandboxes (microVMs) for AI agents on Luxor Agent Cloud
9 lines • 441 B
JavaScript
export function validateUpdateMaxDurationMs(maxDurationMs, sticky) {
if (maxDurationMs !== undefined && (!Number.isFinite(maxDurationMs) || maxDurationMs <= 0)) {
throw new RangeError("maxDurationMs must be a positive finite number");
}
if (maxDurationMs !== undefined && sticky === undefined) {
throw new TypeError("sticky must be set when maxDurationMs is provided");
}
}
//# sourceMappingURL=options.js.map