Class AgentRunSandboxState
java.lang.Object
io.agentscope.harness.agent.sandbox.SandboxState
io.agentscope.extensions.sandbox.agentrun.AgentRunSandboxState
public class AgentRunSandboxState
extends io.agentscope.harness.agent.sandbox.SandboxState
Serializable state for an AgentRun-backed sandbox.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault workspace root path inside an AgentRun sandbox container. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanReturns whetherworkspaceRootlives on a NAS or OSS persistent mount.voidsetAccountId(String accountId) voidsetMcpServerUrl(String mcpServerUrl) voidvoidsetSandboxId(String sandboxId) voidsetSandboxOwned(boolean sandboxOwned) voidsetTemplateName(String templateName) voidsetWorkspaceOnNas(boolean workspaceOnNas) voidsetWorkspaceRoot(String workspaceRoot) Methods inherited from class io.agentscope.harness.agent.sandbox.SandboxState
getSessionId, getSnapshot, getWorkspaceProjectionHash, getWorkspaceSpec, isWorkspaceRootReady, setSessionId, setSnapshot, setWorkspaceProjectionHash, setWorkspaceRootReady, setWorkspaceSpec
-
Field Details
-
DEFAULT_WORKSPACE_ROOT
Default workspace root path inside an AgentRun sandbox container.- See Also:
-
-
Constructor Details
-
AgentRunSandboxState
public AgentRunSandboxState()
-
-
Method Details
-
getSandboxId
-
setSandboxId
-
getWorkspaceRoot
-
setWorkspaceRoot
-
getTemplateName
-
setTemplateName
-
getAccountId
-
setAccountId
-
getRegion
-
setRegion
-
getMcpServerUrl
-
setMcpServerUrl
-
isSandboxOwned
public boolean isSandboxOwned() -
setSandboxOwned
public void setSandboxOwned(boolean sandboxOwned) -
isWorkspaceOnNas
public boolean isWorkspaceOnNas()Returns whetherworkspaceRootlives on a NAS or OSS persistent mount.When
true, the workspace survives sandbox deletion and the adapter skips tar-based persistence; "resume" is achieved by recreating the sandbox with the same deterministic id and the same mount configuration.- Returns:
- true when the workspace root is backed by a persistent mount
-
setWorkspaceOnNas
public void setWorkspaceOnNas(boolean workspaceOnNas)
-