Class LocalFileEntry

java.lang.Object
io.agentscope.harness.agent.sandbox.layout.WorkspaceEntry
io.agentscope.harness.agent.sandbox.layout.LocalFileEntry

public class LocalFileEntry extends WorkspaceEntry
Layout entry that copies a single file from the host filesystem into the sandbox workspace.

The sourcePath is an absolute path on the host machine. It is stored as a string to ensure safe JSON serialization across platforms.

  • Constructor Details

    • LocalFileEntry

      public LocalFileEntry()
      Creates an empty local file entry.
    • LocalFileEntry

      public LocalFileEntry(String sourcePath)
      Creates a local file entry with the given host source path.
      Parameters:
      sourcePath - absolute path on the host filesystem
  • Method Details

    • getSourcePath

      public String getSourcePath()
      Returns the host-side source path.
      Returns:
      absolute host path as a string
    • setSourcePath

      public void setSourcePath(String sourcePath)
      Sets the host-side source path.
      Parameters:
      sourcePath - absolute host path as a string