Skip to content

Commit

Permalink
Hotfix for NFT Agent (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii authored Feb 5, 2025
1 parent 0c66b91 commit e98ebe6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def before_iteration_callback(self) -> None:
# That way he won't be doing anything until the game is reset.
logger.info("Agent is done with the game, sleeping.")
time.sleep(60)
# TODO: Handle this better. Agent needs to stop after the sleep. (otherwise he will continue after 60s even if the game is still stopped)
exit()
else:
self.agent.history.extend(
[
Expand All @@ -107,8 +109,8 @@ def before_iteration_callback(self) -> None:
{"role": "user", "content": "The reasoning has been recorded"},
]
)
# Save this to the history so that we see it in the UI.
self.save_agent_history(system_prompt, 2)
# Save this to the history so that we see it in the UI.
self.save_agent_history(system_prompt, 2)

def after_iteration_callback(self) -> None:
system_prompt = self.agent.history[0]
Expand Down

0 comments on commit e98ebe6

Please sign in to comment.