Allow only 1 iteration

This commit is contained in:
mijauexe
2025-06-11 08:48:09 +02:00
parent 5bcad79296
commit 47d24399e2

View File

@@ -111,7 +111,7 @@ class Frontend(FileDiffMixin, GitMixin, BaseAgent):
if self.next_state.epics[-1].get("manual_iteration", False):
# If manual iteration is True, we assume only one iteration of continue is needed
# If we want multiple iterations, we should use response.original_response.count("```") % 2 == 0
self.next_state.epics[-1]["fe_iteration_done"] = response.original_response.count("```") % 2 == 0
self.next_state.epics[-1]["fe_iteration_done"] = True
else:
self.next_state.epics[-1]["fe_iteration_done"] = (
"done" in response.original_response[-20:].lower().strip() or len(convo.messages) > 15