How to resuming a groupchat with chat history? #7021
Replies: 2 comments
|
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. |
|
0.2's Persist The agents and model clients have to match. A new There is no "load the sqlite and continue" switch. You own the log. Serialize the message objects (text, source, tool calls) and replay them as If you only have pretty-printed logs, you will lose tool-call ids and the next turn will look like a fresh chat. |
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
All reactions