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
functionality of manual history cleaning by user proxy added (#1230)
* functionality of manual history cleaning by admin added
* formatting improved
* formatting improved 2
* formatting improved 3
* test function added
* test code formatting
* test code formatting 2
* more advanced logging. Now user can see nr of messages to preserve as confirmation
* test_invalid_allow_repeat_speaker uncommented
* warning when providing recepient agent and nr messages to preserve added, changed variables names
* code formatting
* code formatting
* code formatting
* added 'enable_clear_history' variable to GroupChat
* 'enable_clear_history' added, better descripted
* clearing groupchat history added
* clearing groupchat history added
* two ifs merged into one, formatting improved
* two ifs merged into one, formatting improved
* two ifs merged into one, formatting improved
* formatting
* formatting
---------
Co-authored-by: Davor Runje <[email protected]>
Co-authored-by: Chi Wang <[email protected]>
Copy file name to clipboardExpand all lines: autogen/agentchat/groupchat.py
+79
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,9 @@ class GroupChat:
31
31
- "random": the next speaker is selected randomly.
32
32
- "round_robin": the next speaker is selected in a round robin fashion, i.e., iterating in the same order as provided in `agents`.
33
33
- allow_repeat_speaker: whether to allow the same speaker to speak consecutively. Default is True, in which case all speakers are allowed to speak consecutively. If allow_repeat_speaker is a list of Agents, then only those listed agents are allowed to repeat. If set to False, then no speakers are allowed to repeat.
34
+
- enable_clear_history: enable possibility to clear history of messages for agents manually by providing
35
+
"clear history" phrase in user prompt. This is experimental feature.
36
+
See description of GroupChatManager.clear_agents_history function for more info.
0 commit comments