AS AgentScopeAPI 手册 / API Reference

WorkspaceProjectionEntry

public class WorkspaceProjectionEntry extends WorkspaceEntry
源码Source 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.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/agent/sandbox/layout/WorkspaceProjectionEntry.java:38–40

setSourceRoot

public void setSourceRoot(String sourceRoot)

设置来源根。

Sets the source root.

参数Parameters
名称Name类型Type说明Description
sourceRootString来源根(类型 `String`)。The source root.
源码Source io/agentscope/harness/agent/sandbox/layout/WorkspaceProjectionEntry.java:42–44

getIncludeRoots

public List<String> getIncludeRoots()

获取 getIncludeRoots。

Relative include roots under #getSourceRoot().

返回Returns List<String>
返回列出。Returns list.
源码Source io/agentscope/harness/agent/sandbox/layout/WorkspaceProjectionEntry.java:49–51

setIncludeRoots

public void setIncludeRoots(List<String> includeRoots)

设置 setIncludeRoots。

Sets the include roots.

参数Parameters
名称Name类型Type说明Description
includeRootsList<String>include Roots(类型 `List`)。The include roots.
源码Source io/agentscope/harness/agent/sandbox/layout/WorkspaceProjectionEntry.java:53–56

继承成员Inherited Members

继承自Methods inherited from WorkspaceEntry
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.