Skip to content

Commit bc31ff6

Browse files
committed
fix bug for BaseAgent
1 parent af8023d commit bc31ff6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/agent/base.py

-2
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ async def run(self, request: Optional[str] = None) -> str:
144144
results.append(f"Step {self.current_step}: {step_result}")
145145

146146
if self.current_step >= self.max_steps:
147-
self.current_step = 0 # setting back to 0 when reached max steps
148-
self.state = AgentState.IDLE # setting the status
149147
results.append(f"Terminated: Reached max steps ({self.max_steps})")
150148

151149
return "\n".join(results) if results else "No steps executed"

0 commit comments

Comments
 (0)