Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: Not possible to save intermediate ChatResult history once conversation fails #566

Open
ArturDev42 opened this issue Jan 20, 2025 · 0 comments

Comments

@ArturDev42
Copy link

ArturDev42 commented Jan 20, 2025

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 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:

chat_result = ChatResult(

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant