Package io.agentscope.harness.agent.sandbox
package io.agentscope.harness.agent.sandbox
-
ClassDescriptionAbstract base implementation of
Sandboxwith the 4-branch workspace start logic.Result of a sandbox command execution.An active sandbox with a fully isolated workspace.Result of acquiring aSandboxfromSandboxManager.Marks a filesystem that can have its backingSandboxinjected at runtime.SandboxClient<O extends SandboxClientOptions>Factory for creating and resumingSandboxinstances.Base class for sandbox client configuration options.Immutable configuration for sandbox behavior.Error codes for sandbox operations, used inSandboxExceptionand its subclasses.Base exception for all sandbox operations.Thrown when a sandbox command exits with a non-zero exit code.Thrown when a sandbox command times out.Thrown when sandbox configuration is invalid or missing (e.g. no client configured).Thrown for general sandbox runtime failures not covered by a more specific subclass.Thrown when a snapshot operation (persist or restore) fails.Thrown when the workspace backend fails to start.Thrown when the workspace backend fails to stop.Pluggable concurrency guard for sandbox execution slots.Singleton no-op implementation.Optional capability forSandboxbackends that support native (non-exec) file transfer, e.g. a dedicated HTTP upload/download API exposed by the sandbox runtime.Immutable key that uniquely identifies a sandbox state slot for a givenIsolationScope.A handle that represents a held execution right on a sandbox isolation slot.Singleton no-op implementation.Manages the lifecycle ofSandboxinstances for the current call.Serializable state of a sandbox, persisted bySessionSandboxStateStoreso a sandbox can be resumed across calls.Sandbox state store backed by the generic AgentScopeAgentStateStoreabstraction.Securely extracts tar archives into a target directory.Helpers forBindMountEntryhandling.Builds a deterministic archive payload for workspace projection entries.Projection result used at sandbox start.Describes the desired initial state of a sandbox workspace: root path, materialized file/directory entries, and per-exec environment variables.Applies aWorkspaceSpecto a target directory by materializing declared entries (files, directories, local copies).