Fix minor bug caused by new logging feat in aguvis agent traj

This commit is contained in:
Timothyxxx
2024-12-05 15:45:09 +08:00
parent 9d6879d334
commit 2c8e8a58f6

View File

@@ -1077,7 +1077,10 @@ class PromptAgent:
return actions
def reset(self):
def reset(self, _logger=None):
global logger
logger = _logger if _logger is not None else logging.getLogger("desktopenv.agent")
self.thoughts = []
self.actions = []
self.observations = []