agentscope-ai / agentscope-ai/agentscope-java
[Bug]:使用DistributedStore和filesystem仍然本地会创建.agentscope/workspace/.index/workerspace.db和alice文件
- 主要語言
- Java
- 星號
- 5.6k
- 分支
- 1.3k
- 平均合併
- 4 天 12 小時
- 30 天內合併 PR
- 77
描述
**Describe the bug**
```
DistributedStore store = DistributedStore.builder()
.agentStateStore(PostgresAgentStateStore.builder(ds).build())
.baseStore(PostgresBaseV1Store.builder(ds).build())
.build();
HarnessAgent agent = HarnessAgent.builder()
.name("note-taker")
.sysPrompt("你是一个智能客服助手。")
.distributedStore(store)
.filesystem(new RemoteFilesystemSpec()
.isolationScope(IsolationScope.USER)
)
.model(chatModel)
.enablePendingToolRecovery(true)
.filesystem(new RemoteFilesystemSpec()
.isolationScope(IsolationScope.USER))
.compaction(CompactionConfig.builder()
.triggerMessages(8)
.keepMessages(3)
.build())
.build();
```
使用DistributedStore和filesystem仍然本地会创建.agentscope/workspace/.index/workerspace.db和会话文件xxx.jsonl和xx.log.jsonl
修复建议:对于云端部署,此种方式不太适合本地缓存,会导致服务器端文件越来越大。
1,本地缓存是否考虑采用其他方式?
2,此种方式不应该生成本地会话文件。
貢獻指南
評估
這個 Issue 還沒有評估資料。