AS AgentScopeAPI 手册 / API Reference

WorkspaceProjectionApplier

public final class WorkspaceProjectionApplier
源码Source io/agentscope/harness/agent/sandbox/WorkspaceProjectionApplier.java:43–156

工作区 Projection Applier,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.agent.sandbox 包。核心成员包括 build。

Builds a deterministic archive payload for workspace projection entries.

The payload contains:

  • projected files as a tar archive (for sandbox hydration)

  • a content hash used to skip unchanged projections across calls

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
ProjectionPayload记录record
承载 Projection 负载数据的记录类型。
Projection result used at sandbox start.

方法摘要Method Summary

方法Method说明Description
public static ProjectionPayload build(WorkspaceSpec spec) throws Exception
static
构建并返回最终实例。
Builds projection payload from all `WorkspaceProjectionEntry` items in the spec.

方法详情Method Detail

build

public static ProjectionPayload build(WorkspaceSpec spec) throws Exception
static

构建并返回最终实例。

Builds projection payload from all WorkspaceProjectionEntry items in the spec.

参数Parameters
名称Name类型Type说明Description
specWorkspaceSpec规格(类型 `WorkspaceSpec`)。The spec.
返回Returns ProjectionPayload
返回ProjectionPayload。Returns projection payload.
抛出Throws
  • Exception 可能抛出 `Exception`。Thrown when the operation cannot be completed.
源码Source io/agentscope/harness/agent/sandbox/WorkspaceProjectionApplier.java:50–88

嵌套类详情Nested Class Detail

ProjectionPayload

public record ProjectionPayload(String hash, byte[] tarBytes, int fileCount)

承载 Projection 负载数据的记录类型。位于 io.agentscope.harness.agent.sandbox 包。核心成员包括 hash、tarBytes、fileCount。

Projection result used at sandbox start.

基于官方固定版本源码静态生成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.