Class AgentRunOssMountConfig
java.lang.Object
io.agentscope.extensions.sandbox.agentrun.AgentRunOssMountConfig
OSS instance-level mount configuration for an AgentRun sandbox.
OSS mounts use ossfs FUSE and apply per-sandbox instance. Up to five mounts per sandbox
are supported. The mount target directory must reside under /home, /mnt or
/data, and the bucket must be in standard storage in the same region as the sandbox.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the OSS bucket name to mount.Returns the OSS bucket sub-path to mount.Returns the OSS endpoint (e.g.Returns the in-sandbox mount directory.booleanReturns whether the mount is read-only.setBucketName(String bucketName) setBucketPath(String bucketPath) setEndpoint(String endpoint) setMountDir(String mountDir) setReadOnly(boolean readOnly)
-
Constructor Details
-
AgentRunOssMountConfig
public AgentRunOssMountConfig()Default constructor.
-
-
Method Details
-
getBucketName
Returns the OSS bucket name to mount.- Returns:
- bucket name
-
setBucketName
-
getBucketPath
Returns the OSS bucket sub-path to mount.- Returns:
- bucket path, defaults to
"/"
-
setBucketPath
-
getEndpoint
Returns the OSS endpoint (e.g.oss-cn-hangzhou-internal.aliyuncs.com).- Returns:
- OSS endpoint
-
setEndpoint
-
getMountDir
Returns the in-sandbox mount directory.- Returns:
- absolute mount path (must start with
/home,/mntor/data)
-
setMountDir
-
isReadOnly
public boolean isReadOnly()Returns whether the mount is read-only.- Returns:
- true when read-only
-
setReadOnly
-