How to resuming a groupchat with chat history? #7021
Replies: 1 comment
-
|
yeah this is doable in v0.4, it just looks different from the v0.2 approach.
# at the end of a session, save the team state
state = await team.save_state()
# `state` is a plain dict - serialize it to json or store in your db
# later, to resume:
team2 = RoundRobinGroupChat([...]) # same agents and config
await team2.load_state(state)
result = await team2.run(task="continue from where we left off")
if you only have raw logs from a database (not a the v0.2 resume docs you linked covered a similar concept but the api changed significantly in 0.4, which is probably why you could not find the equivalent. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am attempting to restore a terminated group chat. with the following information available:
Questions:
Is it possible to restore the group chat? If so, what are the steps required?
There appears to be relevant documentation for version 0.2 (https://microsoft.github.io/autogen/0.2/docs/topics/groupchat/resuming_groupchat/), but the functionality seems unavailable or less feasible in newer versions.
Thanks for your suggestions
Beta Was this translation helpful? Give feedback.
All reactions