SandboxFileSystemOptions

class baseten.sandbox.SandboxFileSystemOptions(*, max_memory_usage=None)

Bases: object

Filesystem configuration of a sandbox, fixed at creation.

The filesystem is held in memory, so files written count against the sandbox’s memory.

Parameters:

max_memory_usage (str | int | None)

max_memory_usage: str | int | None = None

Maximum memory the filesystem can use.

A percentage of the sandbox’s memory such as "80%", a size such as "2Gi", or a number of megabytes. The server defaults to 50%.