Class LocalFileEntry
java.lang.Object
io.agentscope.harness.agent.sandbox.layout.WorkspaceEntry
io.agentscope.harness.agent.sandbox.layout.LocalFileEntry
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 Summary
ConstructorsConstructorDescriptionCreates an empty local file entry.LocalFileEntry(String sourcePath) Creates a local file entry with the given host source path. -
Method Summary
Modifier and TypeMethodDescriptionReturns the host-side source path.voidsetSourcePath(String sourcePath) Sets the host-side source path.Methods inherited from class io.agentscope.harness.agent.sandbox.layout.WorkspaceEntry
isEphemeral, setEphemeral
-
Constructor Details
-
LocalFileEntry
public LocalFileEntry()Creates an empty local file entry. -
LocalFileEntry
Creates a local file entry with the given host source path.- Parameters:
sourcePath- absolute path on the host filesystem
-
-
Method Details
-
getSourcePath
Returns the host-side source path.- Returns:
- absolute host path as a string
-
setSourcePath
Sets the host-side source path.- Parameters:
sourcePath- absolute host path as a string
-