![]() |
https://www.pexels.com/photo/roofs-of-industrial-buildings-18843272/ |
After post a blog on saving and restoring langgraph state, we show how we can easily save and load AutoGen's state with Redis.
The code is in this git repo.
For illustration purpose, we have constructed a very simple use case which is to ask LLM to generate a list of random numbers and then ask it to list them. In order to do this, AutoGen has to remember all the previous conversation.
Here us a demo (no audio). It shows that state can be restored and able to list previous generated numbers. The first interaction with Autogen, we can see that the state
is None
and subsequently, we can able to restore the state.
Please watch it with fullscreen.
Comments
Post a Comment