mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-19 16:31:30 +00:00
reset error retry counter
This commit is contained in:
parent
95c22c22dd
commit
1945555b2d
1 changed files with 2 additions and 0 deletions
2
agent.py
2
agent.py
|
|
@ -515,6 +515,8 @@ class Agent:
|
|||
"message_loop_end", loop_data=self.loop_data
|
||||
)
|
||||
|
||||
error_retries = 0 # reset retry counter on successful iteration
|
||||
|
||||
# exceptions outside message loop:
|
||||
except InterventionException as e:
|
||||
error_retries = 0 # reset retry counter on user intervention
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue