agentscope-ai / agentscope-ai/agentscope-java
[Bug]: filesystem重写snapshotSpec不生效
- 主要语言
- Java
- 星标
- 5.6k
- 派生
- 1.3k
- 平均合并
- 4 天 12 小时
- 30 天内合并 PR
- 77
描述
**Describe the bug**
filesystem重写snapshotSpec不生效
SandboxFilesystemSpec子类实现
public SandboxFilesystemSpec snapshotSpec(SandboxSnapshotSpec snapshotSpec) {
this.snapshotSpecOverride = snapshotSpec;
return this;
}
方法时,没有重写snapshotSpecOverride,
agent又使用原distributedStore覆盖snapshotSpec
sandboxFilesystemSpec.snapshotSpec(distributedStore.sandboxSnapshotSpec());
我使用redisDistributedStore+LocalSnapshotSpec,快照被存在了redis上
filesystem.image("alpine:3.20")
.workspaceRoot(SANDBOX_WORKSPACE_ROOT)
.memorySizeBytes(SANDBOX_MEMORY_LIMIT_BYTES)
.cpuCount(SANDBOX_CPU_COUNT)
.network("bridge")
.isolationScope(IsolationScope.USER)
.snapshotSpec(new LocalSnapshotSpec(required(
"agentscope.sandbox.snapshot-path", sandboxSnapshotPath)));
贡献指南
评估
这个 Issue 还没有评估数据。