Hi, in the Sequential chats lesson, when calling:
chat_results = initiate_chats(chats)
there is a warning message:
“UserWarning: Repetitive recipients detected: The chat history will be cleared by default if a recipient appears more than once. To retain the chat history, please set ‘clear_history=False’ in the configuration of the repeating agent.”
It comes from: autogen/autogen/agentchat/chat.py line 47:
if len(receipts_set) < len(chat_queue):
warnings.warn(
"Repetitive recipients detected: The chat history will be cleared by default if a recipient appears more than once. To retain the chat history, please set 'clear_history=False' in the configuration of the repeating agent.",
UserWarning,
)
In this case, we are setting the same
"recipient": customer_proxy_agent
for two items in the chats list.
It sounds like that is what is intended, so I don’t have any suggestions. Maybe the warning is inappropriate and it’s ok to have repeat recipients in the list?