agentscope-ai / agentscope-ai/agentscope-java

WorkspaceContextMiddleware.onSystemPrompt中的buildWorkspaceSection可能有eventLoop阻塞问题

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

Description

WorkspaceContextMiddleware onSystemPrompt 是跑在caller线程上的,如果使用weflux的话,那就是跑在eventLoop上了,那么就会有阻塞的问题:
因为onSystemPrompt 里 buildWorkspaceSection 同步读 AGENTS.md/MEMORY.md/KNOWLEDGE.md + 额外文件(本地 filesystem 或远程 redis RemoteFilesystem)

io.agentscope.harness.agent.middleware.WorkspaceContextMiddleware#buildWorkspaceSection

另外但凡涉及到从远程remote store读取的,可能都有阻塞的问题,不知道官方何时能彻底修复。

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.