plancraft 0.3.23__py3-none-any.whl → 0.3.25__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.
@@ -123,9 +123,13 @@ class MoveAction(BaseModel):
123
123
  if self.slot_from == self.slot_to:
124
124
  raise AttributeError("[Source] and [Target] must be different")
125
125
  if self.slot_from < 0 or self.slot_from > 45:
126
- raise AttributeError("[Source] must be between 0 and 45")
126
+ raise AttributeError(
127
+ "[Source] must be [0] or [A1] to [C3] or [I1] to [I36]"
128
+ )
129
+ if self.slot_to == 0:
130
+ raise AttributeError("You cannot move items into [0]")
127
131
  if self.slot_to < 1 or self.slot_to > 45:
128
- raise AttributeError("[Target] must be between 1 and 45")
132
+ raise AttributeError("[Target] must be [A1] to [C3] or [I1] to [I36]")
129
133
  if self.quantity < 1 or self.quantity > 64:
130
134
  raise AttributeError("quantity must be between 1 and 64")
131
135
  return self
@@ -172,9 +176,13 @@ class SmeltAction(BaseModel):
172
176
  if self.slot_from == self.slot_to:
173
177
  raise AttributeError("[Source] and [Target] must be different")
174
178
  if self.slot_from < 0 or self.slot_from > 45:
175
- raise AttributeError("[Source] must be between 0 and 45")
179
+ raise AttributeError(
180
+ "[Source] must be [0] or [A1] to [C3] or [I1] to [I36]"
181
+ )
182
+ if self.slot_to == 0:
183
+ raise AttributeError("You cannot smelt items into [0]")
176
184
  if self.slot_to < 1 or self.slot_to > 45:
177
- raise AttributeError("[Target] must be between 1 and 45")
185
+ raise AttributeError("[Target] must be [A1] to [C3] or [I1] to [I36]")
178
186
  if self.quantity < 1 or self.quantity > 64:
179
187
  raise AttributeError("quantity must be between 1 and 64")
180
188
  return self
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plancraft
3
- Version: 0.3.23
3
+ Version: 0.3.25
4
4
  Summary: Plancraft: an evaluation dataset for planning with LLM agents
5
5
  License: MIT License
6
6
 
@@ -11,7 +11,7 @@ plancraft/data/val.json,sha256=IToAiaqUNQi_xhX1bzmInuskLaT7C2ryQjP-CZkzL24,13044
11
11
  plancraft/data/val.small.easy.json,sha256=9zEmqepjXG2NIp88xnFqOCkwsUsku3HEwHoQGxgTr6U,190252
12
12
  plancraft/data/val.small.json,sha256=76E9EFaljDQyAokg97e-IblvcOe6KbrdKkXvRxhhkgo,237653
13
13
  plancraft/environment/__init__.py,sha256=XFsFny4lH195AwAmL-WeCaF9ZCMgc7IgXIwhQ8FTdgE,505
14
- plancraft/environment/actions.py,sha256=Ve3SHwg0o2NcMBVM8O-IRjsvcdO2dH8kqvweWm6euo8,10559
14
+ plancraft/environment/actions.py,sha256=Y_uPg6xjMrtwvtADe7ziTFN9itw6IOOx3sJB5NQFNFE,10880
15
15
  plancraft/environment/env.py,sha256=A4532st7JFBYBF_Nh0CEEi3ZTLJAeaB3t9PAIVSemj0,16390
16
16
  plancraft/environment/items.py,sha256=Z9rhSyVDEoHF1pxRvhyiT94tyQJaWHi3wUHVcamz82o,221
17
17
  plancraft/environment/planner.py,sha256=uIOJjIoyT_4pxeWeTKb8BkLJyKZG0-AMoEOkZs6Ua9A,19340
@@ -1920,7 +1920,7 @@ plancraft/models/generators.py,sha256=F76_iPiqxUjDIrQwF58tzM0bLM91OkZJ0sBqBuki5w
1920
1920
  plancraft/models/oracle.py,sha256=f-0KWlBuHy6wcxmDsxM3MQ_QwfBstzfbA26mlk1MgLA,1657
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.23.dist-info/METADATA,sha256=b6Iil2CofkUe3ufqY_ys51a7qEWuBn1IctmSQmK_NAY,11148
1924
- plancraft-0.3.23.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
1925
- plancraft-0.3.23.dist-info/licenses/LICENSE,sha256=YGR8ehDB4t-T-lOQKMfKNR-2zsOU7E3E5NA8t25HKE0,1070
1926
- plancraft-0.3.23.dist-info/RECORD,,
1923
+ plancraft-0.3.25.dist-info/METADATA,sha256=pSbT2EBhcwKnvRtOeq3lAPrpPrDgZ2DAsnosjLyQe78,11148
1924
+ plancraft-0.3.25.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
1925
+ plancraft-0.3.25.dist-info/licenses/LICENSE,sha256=YGR8ehDB4t-T-lOQKMfKNR-2zsOU7E3E5NA8t25HKE0,1070
1926
+ plancraft-0.3.25.dist-info/RECORD,,