UNPKG

@luxorai/sandbox

Version:

TypeScript SDK for Luxor Sandbox: cloud sandboxes (microVMs) for AI agents on Luxor Agent Cloud

12 lines • 578 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateUpdateMaxDurationMs = validateUpdateMaxDurationMs; 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