AS AgentScopeAPI 手册 / API Reference

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:30

LocalDirEntry

public LocalDirEntry(String sourcePath)

初始化 LocalDirEntry 实例。

Creates a local directory entry with the given host source path.

参数Parameters
名称Name类型Type说明Description
sourcePathString来源路径(类型 `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.

返回Returns String
返回字符串结果。absolute host directory path as a string
源码Source io/agentscope/harness/agent/sandbox/layout/LocalDirEntry.java:46–48

setSourcePath

public void setSourcePath(String sourcePath)

设置来源路径。

Sets the host-side source directory path.

参数Parameters
名称Name类型Type说明Description
sourcePathString来源路径(类型 `String`)。absolute host directory path as a string
源码Source io/agentscope/harness/agent/sandbox/layout/LocalDirEntry.java:55–57

继承成员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.