fixr: update step method signature and return value in DesktopEnv class

This commit is contained in:
yuanmengqi
2025-05-31 08:43:53 +00:00
parent 13573f6caf
commit 64ebbceedb

View File

@@ -83,7 +83,7 @@ class DesktopEnv:
def _stop_video_recording(self):
pass
def step(self, action) -> Tuple:
def step(self, action, *args, **kargs) -> Tuple:
self._step_no += 1
self.action_history.append(action)
@@ -116,7 +116,7 @@ class DesktopEnv:
}
info.update({"tool_result": tool_result})
return (terminated, info)
return (self._get_obs(), 0, terminated, info)
def close(self):
self._step_no = 0