-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed
Labels
group chat/teamsgroup-chat-related issuesgroup-chat-related issuestool-usagesuggestion and execution of function/tool callsuggestion and execution of function/tool call
Description
We have a couple of users who are hitting an infinite loop(#108) when they start a chat between two agents or a group of chat.
The cause of the infinite loop is that we are using some hard-code rule to determine if a message contains terminate information, which is prone to bugs.
A more robust way is to use a terminate_conversation function call, which returns a hard-coded termination message instead of relying on LLM to generate that TERMINATE signal.
This terminate_conversation solution has two advantages
- the TERMINATE message will be deterministic.
- the TERMINATE signal won't be mixed with other content (because it's a funciton_call)
Any suggestion/feedback on creating an example of doing that? I can create an example for groupchat, would be great if someone can create example for twoagent chat.
Metadata
Metadata
Assignees
Labels
group chat/teamsgroup-chat-related issuesgroup-chat-related issuestool-usagesuggestion and execution of function/tool callsuggestion and execution of function/tool call