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
allow function to remove termination string in groupchat (#2804)
* allow function to remove termination string in groupchat
* improve docstring
Co-authored-by: Joshua Kim <[email protected]>
* improve docstring
Co-authored-by: Joshua Kim <[email protected]>
* improve test case description
Co-authored-by: Joshua Kim <[email protected]>
---------
Co-authored-by: Joshua Kim <[email protected]>
"""Resumes a group chat using the previous messages as a starting point, asynchronously. Requires the agents, group chat, and group chat manager to be established
1270
1272
as per the original group chat.
1271
1273
1272
1274
Args:
1273
1275
- messages Union[List[Dict], str]: The content of the previous chat's messages, either as a Json string or a list of message dictionaries.
1274
-
- remove_termination_string str: Remove the provided string from the last message to prevent immediate termination
1276
+
- remove_termination_string (str or function): Remove the termination string from the last message to prevent immediate termination
1277
+
If a string is provided, this string will be removed from last message.
1278
+
If a function is provided, the last message will be passed to this function, and the function returns the string after processing.
1275
1279
- silent (bool or None): (Experimental) whether to print the messages for this conversation. Default is False.
0 commit comments