API reference
ai-sdk-sandbox-microsandbox
The options of createMicrosandboxNetworkSandboxSession and resumeMicrosandboxNetworkSandboxSession, generated from the source.
createMicrosandboxNetworkSandboxSession(options)
Creates a microsandbox and returns a MicrosandboxNetworkSandboxSession on it. Besides the settings below, it takes sandboxId, template and abortSignal.
Prop
Type
resumeMicrosandboxNetworkSandboxSession(options)
Reattaches to an existing sandbox, starting it if it is stopped. Besides the settings below, it takes sandboxId (required) and abortSignal. Throws MicrosandboxSandboxNotFoundError when no sandbox has that name.
Prop
Type
pruneMicrosandboxTemplates(options)
Removes the template snapshots the package saved, and returns their names. The sandboxes restored from them keep running; the next sandbox created from a removed template builds it again.
Prop
Type