Interface AbstractSandboxFilesystem
- All Superinterfaces:
AbstractFilesystem
- All Known Implementing Classes:
BaseSandboxFilesystem,LocalFilesystemWithShell,PinnedSandboxFilesystem,ProjectAwareOverlay,RoutedSandboxFilesystem,SandboxBackedFilesystem
Filesystem abstraction that adds shell command execution (sandbox or remote host).
Extends AbstractFilesystem with execute(io.agentscope.core.agent.RuntimeContext, java.lang.String, java.lang.Integer) and id().
-
Method Summary
Methods inherited from interface io.agentscope.harness.agent.filesystem.AbstractFilesystem
delete, downloadFiles, edit, exists, glob, grep, ls, move, read, uploadFiles, write
-
Method Details
-
id
String id()Unique identifier for this filesystem/sandbox instance.- Returns:
- id string
-
execute
ExecuteResponse execute(io.agentscope.core.agent.RuntimeContext runtimeContext, String command, Integer timeoutSeconds) Execute a shell command in the environment backing this filesystem.- Parameters:
runtimeContext- per-call agent context; may benullwhen unavailablecommand- full shell command string to executetimeoutSeconds- maximum time in seconds to wait for the command to complete;nulluses the filesystem's default timeout- Returns:
- ExecuteResponse with combined output, exit code, and truncation flag; a
non-successful response (see
ExecuteResponse.isSuccess()) means the command did not complete successfully, sooutputmust not be parsed as normal command output
-