Interface AbstractSandboxFilesystem

All Superinterfaces:
AbstractFilesystem
All Known Implementing Classes:
BaseSandboxFilesystem, LocalFilesystemWithShell, PinnedSandboxFilesystem, ProjectAwareOverlay, RoutedSandboxFilesystem, SandboxBackedFilesystem

public interface AbstractSandboxFilesystem extends AbstractFilesystem
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 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 be null when unavailable
      command - full shell command string to execute
      timeoutSeconds - maximum time in seconds to wait for the command to complete; null uses 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, so output must not be parsed as normal command output