UNPKG

@luxorai/sandbox

Version:

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

21 lines (20 loc) • 856 B
export declare const MIN_CPU_CORES = 1; export declare const MAX_CPU_CORES = 128; export declare const MIN_CREATE_MEMORY_MB = 256; export declare const MIN_PROVISION_MEMORY_MB = 512; export declare const MAX_MEMORY_MB = 524288; export declare const MIN_DISK_SIZE_GB = 5; export declare const MAX_DISK_SIZE_GB = 100; interface ResourceOptions { cpuCores?: number; memoryMb?: number; diskSizeGb?: number; } /** * Checks create resources against the sandbox API's constraints without issuing a * request. Create applies it to every request; it is exported so callers building a * form can reject one field at a time, omitting the fields they are not checking. */ export declare function validateCreateResources(resources: ResourceOptions): void; export declare function validateTemplateResources(resources?: ResourceOptions): void; export {};