Metadata for a single sandbox instance.
This lightweight structure is returned from list operations and provides basic information about a sandbox without requiring a full connection.
Metadata for the edit operation, attached to the ToolMessage
Unique identifier of the sandbox to delete
// Using default metadata type
const info: SandboxInfo = {
sandboxId: "sb_abc123",
metadata: { status: "running", createdAt: "2024-01-15T10:30:00Z" },
};
// Using typed metadata
interface MyMetadata {
status: "running" | "stopped";
createdAt: string;
}
const typedInfo: SandboxInfo<MyMetadata> = {
sandboxId: "sb_abc123",
metadata: { status: "running", createdAt: "2024-01-15T10:30:00Z" },
};