plancraft 0.3.9__py3-none-any.whl → 0.3.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
plancraft/evaluator.py CHANGED
@@ -198,9 +198,7 @@ class Evaluator:
198
198
  action = None
199
199
 
200
200
  # run episode until stuck or until max steps is reached
201
- while (
202
- not self.history.check_stuck() and self.history.num_steps < self.max_steps
203
- ):
201
+ while self.history.num_steps < self.max_steps:
204
202
  # if the action is stop then we end the episode
205
203
  if isinstance(action, StopAction):
206
204
  # if the action is stop and task is impossible then success
plancraft/utils.py CHANGED
@@ -157,21 +157,6 @@ class History:
157
157
  def num_steps(self):
158
158
  return (len(self.dialogue_history) - self.initial_dialogue_length) // 2
159
159
 
160
- def check_stuck(self, max_steps_no_change: int = 10) -> bool:
161
- """
162
- If inventory content does not change for max_steps_no_change steps
163
- the agent is considered stuck.
164
-
165
- With N=10, the oracle solver can still solve 100% of the examples
166
- """
167
- if len(self.inventory_counters) <= max_steps_no_change:
168
- return False
169
-
170
- return all(
171
- c == self.inventory_counters[-max_steps_no_change - 1]
172
- for c in self.inventory_counters[-max_steps_no_change - 1 :]
173
- )
174
-
175
160
 
176
161
  def get_downloaded_models() -> dict:
177
162
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plancraft
3
- Version: 0.3.9
3
+ Version: 0.3.10
4
4
  Summary: Plancraft: an evaluation dataset for planning with LLM agents
5
5
  License: MIT License
6
6
 
@@ -1,8 +1,8 @@
1
1
  plancraft/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  plancraft/config.py,sha256=ShsFRlJ7plsl3ToD9fiO_4LDQuXdbjNV6Xp6o3Yk2Yg,4315
3
- plancraft/evaluator.py,sha256=FogXAjnldK2K1gD02f2WW1YWvjWokKGUOJxwtwzGNjk,10804
3
+ plancraft/evaluator.py,sha256=vu8RqAsvoDtUizLpiDA9w1fmCdCb6q91DUuE_4mUhUo,10745
4
4
  plancraft/generate_dataset.py,sha256=DlrU-PmvWqSNJD1g1-8Lpb8n3N-Ogw3rje1nrRzjGKs,2382
5
- plancraft/utils.py,sha256=phaHzbIS85YZrBPaGG9TStHY8ZBKR1LKfuN1exfVy1U,6889
5
+ plancraft/utils.py,sha256=5_llalestpE2BhpZeU3daLsHSkAFaUW43ChNioRGugo,6349
6
6
  plancraft/data/test.json,sha256=4jWfYMAVuZCFmGB4iZJAjlh9_8jXECdaGp8xn7_tAM4,1317131
7
7
  plancraft/data/test.small.easy.json,sha256=5NZEJ2PqIgmHQecJOIVQyM1D6GFKyJq7GVmgRudaqQk,189304
8
8
  plancraft/data/test.small.json,sha256=eULAG1rdolRMXPrecV-7YoDIheKGyIT5MVpWdISV0wg,270089
@@ -1920,7 +1920,7 @@ plancraft/models/generators.py,sha256=F76_iPiqxUjDIrQwF58tzM0bLM91OkZJ0sBqBuki5w
1920
1920
  plancraft/models/oracle.py,sha256=jDCE6zVFvbwFpDzQZTkHIlRwMud1yMJ4LVIdfpt5ddU,8449
1921
1921
  plancraft/models/utils.py,sha256=E-sZohvolWgGbpHQKgAgkgIfUJoVnT5pMt6JP8xLHKg,4034
1922
1922
  plancraft/train/dataset.py,sha256=oFqEd4LG9oEQ-71teh0Wf7-jJbtybT2ZibfM2bBdBkM,5474
1923
- plancraft-0.3.9.dist-info/METADATA,sha256=zXrxilbtrVK05xX0jjFbDAub_tToabPX0wX1TULyUjA,11147
1924
- plancraft-0.3.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
1925
- plancraft-0.3.9.dist-info/licenses/LICENSE,sha256=YGR8ehDB4t-T-lOQKMfKNR-2zsOU7E3E5NA8t25HKE0,1070
1926
- plancraft-0.3.9.dist-info/RECORD,,
1923
+ plancraft-0.3.10.dist-info/METADATA,sha256=Mt-c0Y9JZUFlE43R9qVFFnRJ23LV6l0rGgH8FjErFbo,11148
1924
+ plancraft-0.3.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
1925
+ plancraft-0.3.10.dist-info/licenses/LICENSE,sha256=YGR8ehDB4t-T-lOQKMfKNR-2zsOU7E3E5NA8t25HKE0,1070
1926
+ plancraft-0.3.10.dist-info/RECORD,,