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 Details

    • DEFAULT_WORKSPACE_ROOT

      public static final String DEFAULT_WORKSPACE_ROOT
      Default workspace root path inside an AgentRun sandbox container.
      See Also:
  • Constructor Details

    • AgentRunSandboxState

      public AgentRunSandboxState()
  • Method Details

    • getSandboxId

      public String getSandboxId()
    • setSandboxId

      public void setSandboxId(String sandboxId)
    • getWorkspaceRoot

      public String getWorkspaceRoot()
    • setWorkspaceRoot

      public void setWorkspaceRoot(String workspaceRoot)
    • getTemplateName

      public String getTemplateName()
    • setTemplateName

      public void setTemplateName(String templateName)
    • getAccountId

      public String getAccountId()
    • setAccountId

      public void setAccountId(String accountId)
    • getRegion

      public String getRegion()
    • setRegion

      public void setRegion(String region)
    • getMcpServerUrl

      public String getMcpServerUrl()
    • setMcpServerUrl

      public void setMcpServerUrl(String mcpServerUrl)
    • isSandboxOwned

      public boolean isSandboxOwned()
    • setSandboxOwned

      public void setSandboxOwned(boolean sandboxOwned)
    • isWorkspaceOnNas

      public boolean isWorkspaceOnNas()
      Returns whether workspaceRoot lives 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)