agentscope-ai / agentscope-ai/agentscope-java

[Bug]:打开长期记忆后,输出完成会有延时

未關閉
#1,094 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area/core/memory bug
主要語言
Java
星號
5.6k
分支
1.3k
平均合併
4 天 12 小時
30 天內合併 PR
77

描述

Image

关闭长期记忆后正常

打开 io.agentscope 日志为debug,输出如下:

```
2026-04-01 11:37:24.381 [boundedElastic-1] DEBUG i.agentscope.core.model.OpenAIClient - SSE data: {"choices":[{"delta":{"content":"。"},"finish_reason":null,"index":0,"logprobs":null}],"object":"chat.completion.chunk","usage":null,"created":1775014643,"system_fingerprint":null,"model":"kimi-k2.5","id":"chatcmpl-19037d30-3611-96c9-8fd6-e57e740459b5"}
2026-04-01 11:37:24.402 [ForkJoinPool.commonPool-worker-1] DEBUG i.a.c.m.transport.JdkHttpTransport - Received SSE data chunk
2026-04-01 11:37:24.403 [boundedElastic-1] DEBUG i.agentscope.core.model.OpenAIClient - SSE data: {"choices":[{"finish_reason":"stop","delta":{"content":""},"index":0,"logprobs":null}],"object":"chat.completion.chunk","usage":null,"created":1775014643,"system_fingerprint":null,"model":"kimi-k2.5","id":"chatcmpl-19037d30-3611-96c9-8fd6-e57e740459b5"}
2026-04-01 11:37:24.403 [ForkJoinPool.commonPool-worker-1] DEBUG i.a.c.m.transport.JdkHttpTransport - Received SSE data chunk
2026-04-01 11:37:24.404 [boundedElastic-1] DEBUG i.agentscope.core.model.OpenAIClient - SSE data: {"choices":[],"object":"chat.completion.chunk","usage":{"prompt_tokens":4314,"completion_tokens":94,"total_tokens":4408,"completion_tokens_details":{"text_tokens":94},"prompt_tokens_details":{"text_tokens":4314,"cached_tokens":0}},"created":1775014643,"system_fingerprint":null,"model":"kimi-k2.5","id":"chatcmpl-19037d30-3611-96c9-8fd6-e57e740459b5"}
2026-04-01 11:38:24.418 [boundedElastic-3] WARN i.a.c.m.StaticLongTermMemoryHook - Failed to record to long-term memory: Read timed out
```

从现象看,长期记忆是走的同步处理逻辑吧,还是我有什么没配置对的, 参考的是文档中的配置,长期记忆中的处理也正常,一直在词嵌入和llm

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。