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
In the definition of a group chat, there are different ways to define when the group chat should stop: max_round, max_consecutive_auto_reply, is_termination_msg, max_turns.
But it seems only max_round literally works:
self.group_chat = GroupChat(
...
max_round=4,
)
self.group_chat_manager = GroupChatManager(
...
max_consecutive_auto_reply=1,
# is_termination_msg=lambda x: "TERMINATE" in x.get("content", ""),
)
result = self.human_proxy.initiate_chat(
self.group_chat_manager,
message=input,
...
max_turns=1, # The maximum number of turns in the conversation.
)
Is there a way to customize the stop condition, for example, stop the group chat once after a certain agent speaks?
Steps to reproduce
No response
Model Used
No response
Expected Behavior
No response
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
But it seems only max_round literally works:
Steps to reproduce
No response
Model Used
No response
Expected Behavior
No response
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: