-
Notifications
You must be signed in to change notification settings - Fork 5.6k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Is it possible to inject previous history? #837
Comments
Yes, you can update the history of agents.
Some pseudo code below user_proxy = autogen.UserProxyAgent ..
assistant = autogen.AssistantAgent ...
for message in history:
user_proxy.send(message, assistant, request_reply=False)
# you can also send from assistant to user_proxy depending on your use case
user_proxy.initiate_chat(assistant, message=message, clear_history=False) |
@victordibia Dr. Dibia, this is SO helpful, thank you! |
how about groupchat? how to handle the chat history? |
Try this: |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hello. My frontend returns the last 4 exchanges with a chatbot. I was wondering if there is a way to initialize an agent using that prior history.
The text was updated successfully, but these errors were encountered: