m-ric HF Staff commited on
Commit
5bb007a
·
1 Parent(s): e077aba
Files changed (1) hide show
  1. e2bqwen.py +1 -1
e2bqwen.py CHANGED
@@ -411,7 +411,7 @@ class E2BVisionAgent(CodeAgent):
411
  and previous_memory_step.step_number <= current_step - 1
412
  ):
413
  if previous_memory_step.tool_calls[0].arguments == memory_step.tool_calls[0].arguments:
414
- memory_steps.observations += "\nWARNING: You've executed the same action several times in a row. MAKE SURE TO NOT USELESSLY REPEAT ACTIONS."
415
 
416
  # Add to the current memory step
417
  memory_step.observations_images = [image.copy()]
 
411
  and previous_memory_step.step_number <= current_step - 1
412
  ):
413
  if previous_memory_step.tool_calls[0].arguments == memory_step.tool_calls[0].arguments:
414
+ memory_step.observations += "\nWARNING: You've executed the same action several times in a row. MAKE SURE TO NOT USELESSLY REPEAT ACTIONS."
415
 
416
  # Add to the current memory step
417
  memory_step.observations_images = [image.copy()]