Skip to content

Commit

Permalink
Break out of loop if agent.step succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
vivi committed Oct 31, 2023
1 parent de6f6e8 commit 3170588
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions memgpt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ async def run_agent_loop(memgpt_agent, first, no_verify=False, cfg=None, legacy=
elif heartbeat_request:
user_message = system.get_heartbeat(constants.REQ_HEARTBEAT_MESSAGE)
skip_next_user_input = True
break
except Exception as e:
print("An exception ocurred when running agent.step(): ")
traceback.print_exc()
Expand Down

0 comments on commit 3170588

Please sign in to comment.