Class SandboxClientOptions
java.lang.Object
io.agentscope.harness.agent.sandbox.SandboxClientOptions
- Direct Known Subclasses:
DockerSandboxClientOptions
Base class for sandbox client configuration options.
Each concrete subclass describes a specific sandbox backend (e.g. Docker) and can
self-instantiate the corresponding SandboxClient via createClient().
This allows callers to configure only the options object and rely on
HarnessAgent.Builder to derive the client automatically.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SandboxClient<? extends SandboxClientOptions>Creates theSandboxClientimplementation that corresponds to these options.abstract StringgetType()Returns the type discriminator used in JSON serialization.Returns the absolute workspace root path inside the sandbox container.
-
Constructor Details
-
SandboxClientOptions
public SandboxClientOptions()
-
-
Method Details
-
getType
Returns the type discriminator used in JSON serialization.- Returns:
- type string (e.g. "docker")
-
createClient
Creates theSandboxClientimplementation that corresponds to these options.Called by
HarnessAgent.Builderwhen no explicit client has been provided, so callers only need to configure the options object.- Returns:
- a new client instance ready for use
-
getWorkspaceRoot
Returns the absolute workspace root path inside the sandbox container.Defaults to
/workspace. Concrete subclasses override this when the sandbox backend uses a different root (e.g. AgentRun uses/home/agentscope/workspace).- Returns:
- workspace root path string
-