Class AgentRunNasMountConfig

java.lang.Object
io.agentscope.extensions.sandbox.agentrun.AgentRunNasMountConfig

public class AgentRunNasMountConfig extends Object
NAS mount configuration for an AgentRun sandbox.

NAS mounts are configured at sandbox creation time and provide instance-level persistent storage that survives sandbox restarts. Use a NAS mount as the workspaceRoot backing store to get "free" persistence without managing tar snapshots.

  • Constructor Details

    • AgentRunNasMountConfig

      public AgentRunNasMountConfig()
      Default constructor.
  • Method Details

    • getServerAddr

      public String getServerAddr()
      Returns the NAS server address (e.g. 12345-abc.cn-hangzhou.nas.aliyuncs.com).
      Returns:
      NAS server address
    • setServerAddr

      public AgentRunNasMountConfig setServerAddr(String serverAddr)
    • getMountDir

      public String getMountDir()
      Returns the in-sandbox mount directory (must start with /home, /mnt or /data).
      Returns:
      absolute mount path
    • setMountDir

      public AgentRunNasMountConfig setMountDir(String mountDir)
    • getRemotePath

      public String getRemotePath()
      Returns the remote path on the NAS filesystem to mount.
      Returns:
      remote path, defaults to "/"
    • setRemotePath

      public AgentRunNasMountConfig setRemotePath(String remotePath)
    • isEnableTLS

      public boolean isEnableTLS()
      Returns whether TLS is enabled for the NAS connection.
      Returns:
      true when TLS is enabled
    • setEnableTLS

      public AgentRunNasMountConfig setEnableTLS(boolean enableTLS)