Your Name commited on
Commit
a3b9d4b
·
1 Parent(s): 94d08ee

fix(OpenEnv): restore missing positional arguments to _build_observation calls (regression fix)

Browse files
Files changed (1) hide show
  1. environment.py +4 -0
environment.py CHANGED
@@ -120,6 +120,8 @@ class TeamForgeEnv:
120
  # Build initial observation
121
  self._obs = self._build_observation(
122
  action_type=None,
 
 
123
  reward=0.1,
124
  done=False,
125
  )
@@ -397,6 +399,8 @@ class TeamForgeEnv:
397
  self._log(f"[END] {reason}")
398
  self._obs = self._build_observation(
399
  action_type=None,
 
 
400
  reward=0.1,
401
  done=True,
402
  )
 
120
  # Build initial observation
121
  self._obs = self._build_observation(
122
  action_type=None,
123
+ status=ActionStatus.SUCCESS,
124
+ output="Environment initialized.",
125
  reward=0.1,
126
  done=False,
127
  )
 
399
  self._log(f"[END] {reason}")
400
  self._obs = self._build_observation(
401
  action_type=None,
402
+ status=ActionStatus.FAILURE,
403
+ output=reason,
404
  reward=0.1,
405
  done=True,
406
  )