Open keldenl opened 7 months ago
Will investigate it.
I disabled the feature to have only the thoughts and reasoning in the function calling agent. Can you check it out and tell me the results?
I'm running into the same issue in the function calling agent. The cause is a combination of this line and the fact that the agent doesn't always execute the send_message function.
I've instructed the model to always send a message when it's done calling other functions. This seems to address the issue for now. Unfortunately, I'm not comfortable with this as a guarantee that it won't end up in an infinite loop.
I suggest some sort of sanity checking in the loop. Either allow the agent to loop only for a specified maximum number of times or break when the model wants to repeat a function call with the exact same parameters or both.
I somehow got llama 3 in a message loop after i said 'What', it somehow got to
<|start_header_id|>user<|end_header_id|>
before activating message mode? and then it started talking to itself (which it thought it was me) endlessly:I'm using
FunctionCallingAgent
btw