agentscope-ai / agentscope-ai/agentscope-java

[Bug]:使用DistributedStore和filesystem仍然本地会创建.agentscope/workspace/.index/workerspace.db和alice文件

オープン
#2,182 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
area/harness bug
主要言語
Java
スター
5.6k
フォーク
1.3k
平均マージ
4日 12時間
マージ済み PR(30日)
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。