Hello all,
It seems to me like the agent loop is not being stopped once max_iter has been reached. handle_max_iterations_exceeded is called and a formatted answer is prepared, but this answer is being overwritten in following LLM calls and the loop is not stopped.
|
if has_reached_max_iterations(self.iterations, self.max_iter): |
A previous revision had a break right after preparing the formatted answer, but this was lost in rev efe27bd.
... or am I missing something here?
Cheers!