You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described in the tutorial, I am using chat_result = user_proxy.initiate_chat(assistant, message=message, max_turns=cfg.max_turns). If there is no error, then the chat is successfully saved in chat_result. However, if an error occurs at some point during the conversation, the conversation until that point is not saved.
I see that in initiate_chat the ChatResult is only saved at the end and not while messages are sent:
Is it possible to save intermediate results (e.g. chat_history, cost, etc.) after every interaction between user proxy and agent until an error occurs? Thanks for the help!
Environment
ag2 vesion = 0.7.0
Python version = 3.12.0
The text was updated successfully, but these errors were encountered:
Describe the issue
As described in the tutorial, I am using
chat_result = user_proxy.initiate_chat(assistant, message=message, max_turns=cfg.max_turns)
. If there is no error, then the chat is successfully saved inchat_result
. However, if an error occurs at some point during the conversation, the conversation until that point is not saved.I see that in
initiate_chat
theChatResult
is only saved at the end and not while messages are sent:ag2/autogen/agentchat/conversable_agent.py
Line 1125 in 1fb6248
Is it possible to save intermediate results (e.g. chat_history, cost, etc.) after every interaction between user proxy and agent until an error occurs? Thanks for the help!
Environment
ag2 vesion = 0.7.0
Python version = 3.12.0
The text was updated successfully, but these errors were encountered: