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 Exceptionstatic | 构建并返回最终实例。 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 |
|---|---|---|
spec | WorkspaceSpec | 规格(类型 `WorkspaceSpec`)。The spec. |
ProjectionPayload返回ProjectionPayload。Returns projection payload.
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.