WorkspaceProjectionEntry
public class WorkspaceProjectionEntry extends WorkspaceEntry
io/agentscope/harness/agent/sandbox/layout/WorkspaceProjectionEntry.java:30–57工作区 Projection 条目,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.agent.sandbox.layout 包,继承自 WorkspaceEntry。核心成员包括 getSourceRoot、setSourceRoot、getIncludeRoots、setIncludeRoots。
Layout entry that projects selected files/directories from host workspace into sandbox
workspace when the io.agentscope.harness.agent.sandbox.Sandbox starts.
This entry is sandbox-specific and is ignored by io.agentscope.harness.agent.sandbox.WorkspaceSpecApplier's regular file materialization
logic. Instead, projection is applied inside io.agentscope.harness.agent.sandbox.Sandbox#start() via archive hydration.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getSourceRoot() | 获取来源根。 Absolute host-side workspace root used as source for projection. |
public void setSourceRoot(String sourceRoot) | 设置来源根。 Sets the source root. |
public List<String> getIncludeRoots() | 获取 `getIncludeRoots`。 Relative include roots under `#getSourceRoot()`. |
public void setIncludeRoots(List<String> includeRoots) | 设置 `setIncludeRoots`。 Sets the include roots. |
方法详情Method Detail
getSourceRoot
public String getSourceRoot()
获取来源根。
Absolute host-side workspace root used as source for projection.
Stringio/agentscope/harness/agent/sandbox/layout/WorkspaceProjectionEntry.java:38–40setSourceRoot
public void setSourceRoot(String sourceRoot)
设置来源根。
Sets the source root.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sourceRoot | String | 来源根(类型 `String`)。The source root. |
io/agentscope/harness/agent/sandbox/layout/WorkspaceProjectionEntry.java:42–44getIncludeRoots
public List<String> getIncludeRoots()
获取 getIncludeRoots。
Relative include roots under #getSourceRoot().
List<String>io/agentscope/harness/agent/sandbox/layout/WorkspaceProjectionEntry.java:49–51setIncludeRoots
public void setIncludeRoots(List<String> includeRoots)
设置 setIncludeRoots。
Sets the include roots.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
includeRoots | List<String> | include Roots(类型 `List`)。The include roots. |
io/agentscope/harness/agent/sandbox/layout/WorkspaceProjectionEntry.java:53–56