Is it possible to inject previous history? #2049
Replies: 5 comments 7 replies
-
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) |
Beta Was this translation helpful? Give feedback.
-
@victordibia Dr. Dibia, this is SO helpful, thank you! |
Beta Was this translation helpful? Give feedback.
-
how about groupchat? how to handle the chat history? |
Beta Was this translation helpful? Give feedback.
-
Try this: |
Beta Was this translation helpful? Give feedback.
-
Anyone got an example of how we can include chat history clearly in a groupchat scenario? |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions