Memory 短期记忆问题 #3336
Unanswered
niceliangfan
asked this question in
Q&A
Memory 短期记忆问题
#3336
Replies: 2 comments 2 replies
-
|
代码如下: |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
使用这个版本的依赖解决:1.1.0.0-RC1 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
使用 RedisSaver 作为 Checkpointer,Redis 会写入乱码,同一 threadId 再次调用,就会报错:class java.util.HashMap cannot be cast to class org.springframework.ai.chat.messages.Message
代码如下:
Redis 中存入的数据如下图:

再次调用该接口,报错如下:
同样,使用 MongoSaver 作为 Checkpointer,虽然不会写入特殊字符,但再次调用仍会报错:class java.util.HashMap cannot be cast to class org.springframework.ai.chat.messages.Message
项目主要依赖:
Beta Was this translation helpful? Give feedback.
All reactions