When an agent uses Redis as a checkpointer, does it not support the call of the astream method? #5827
Unanswered
WangXL1024
asked this question in
Q&A
Replies: 1 comment
-
I think you need to use asynchronous checkpointer when using astream, have you tried AsyncRedisSaver? |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
checkpointer = RedisSaver("redis://localhost:6379")
agent= create_react_agent(
model,
tools=[get_weather],
checkpointer=checkpointer,
prompt=SYSTEM_INSTRUCTION
)
When I use agent.astream(inputs, config, stream_mode='messages'), an exception is thrown and it cannot work properly.
There will be no problem if RedisSaver is changed to MemorySaver.
Beta Was this translation helpful? Give feedback.
All reactions