agentscope-ai / agentscope-ai/agentscope-java

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

Open
#2,182 1 comment 0 reactions 0 assignees View on GitHub
area/harness bug
Dominant language
Java
Stars
5.6k
Forks
1.3k
Avg merge
4d 12h
Merged PRs (30d)
77

Description

**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,此种方式不应该生成本地会话文件。

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.