Just give your tool call loop to a stronger model to check if it’s a loop.
This is what I’ve done working with smaller model: if it fails validation once, I route it to a stronger model just for that tool call.
This is what I’ve done working with smaller model: if it fails validation once, I route it to a stronger model just for that tool call.
the problem the GP was referring to is that even the large model might fail to notice it's struggling to solve a task and keep trying more-or-less the same approaches until the loop is exhausted.