LocalDirEntry
public class LocalDirEntry extends WorkspaceEntry
源码Source
io/agentscope/harness/agent/sandbox/layout/LocalDirEntry.java:25–58本地目录条目,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.agent.sandbox.layout 包,继承自 WorkspaceEntry。核心成员包括 getSourcePath、setSourcePath、LocalDirEntry。
Layout entry that recursively copies a directory from the host filesystem into the sandbox workspace.
The sourcePath is an absolute path to a directory on the host machine. All files
within that directory are copied recursively to the destination path in the workspace.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public LocalDirEntry() | 初始化 `LocalDirEntry` 实例。 Creates an empty local directory entry. |
public LocalDirEntry(String sourcePath) | 初始化 `LocalDirEntry` 实例。 Creates a local directory entry with the given host source path. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getSourcePath() | 获取来源路径。 Returns the host-side source directory path. |
public void setSourcePath(String sourcePath) | 设置来源路径。 Sets the host-side source directory path. |
构造器详情Constructor Detail
LocalDirEntry
public LocalDirEntry()
初始化 LocalDirEntry 实例。
Creates an empty local directory entry.
源码Source
io/agentscope/harness/agent/sandbox/layout/LocalDirEntry.java:30LocalDirEntry
public LocalDirEntry(String sourcePath)
初始化 LocalDirEntry 实例。
Creates a local directory entry with the given host source path.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sourcePath | String | 来源路径(类型 `String`)。absolute path to a directory on the host filesystem |
源码Source
io/agentscope/harness/agent/sandbox/layout/LocalDirEntry.java:37–39方法详情Method Detail
getSourcePath
public String getSourcePath()
获取来源路径。
Returns the host-side source directory path.
String返回字符串结果。absolute host directory path as a string
源码Source
io/agentscope/harness/agent/sandbox/layout/LocalDirEntry.java:46–48setSourcePath
public void setSourcePath(String sourcePath)
设置来源路径。
Sets the host-side source directory path.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sourcePath | String | 来源路径(类型 `String`)。absolute host directory path as a string |
源码Source
io/agentscope/harness/agent/sandbox/layout/LocalDirEntry.java:55–57