Represents an active sandbox for running commands and file operations.
This class is typically obtained from SandboxClient.createSandbox() and provides methods for command execution and file I/O within the sandbox environment.
class Sandboxconst sandbox = await client.createSandbox("python-sandbox");
try {
const result = await sandbox.run("python --version");
console.log(result.stdout);
} finally {
await sandbox.delete();
}Timestamp when the sandbox was created.
URL for data plane operations (file I/O, command execution).
Unique identifier (UUID). Remains constant even if name changes.
Display name (can be updated).
Name of the template used to create this sandbox.
Timestamp when the sandbox was last updated.
Delete this sandbox.
Call this when you're done using the sandbox to clean up resources.
Read a file from the sandbox.
Execute a command in the sandbox.
Write content to a file in the sandbox.