agentscope-ai / agentscope-ai/agentscope-java

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

Aperta
#2,578 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
area/build area/core/agent area/core/memory area/harness question
Lingua principale
Java
Stelle
5.6k
Fork
1.3k
Merge medio
4g 12h
PR unite (30g)
77

Descrizione

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读取的,可能都有阻塞的问题,不知道官方何时能彻底修复。

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.