plancraft 0.4.5__py3-none-any.whl → 0.4.6__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.
@@ -496,13 +496,17 @@ def decompose_subgoal(
496
496
  return subplan, current_inventory, action_items_used
497
497
 
498
498
 
499
- def get_subplans(observation: dict, return_items=False) -> tuple[list[list[str]], list]:
499
+ def get_subplans(
500
+ observation: dict, return_items=False
501
+ ) -> tuple[list[list[str]], list, list[str]] | tuple[list[list[str]], list]:
500
502
  current_inventory = copy.deepcopy(observation["inventory"])
501
503
  plan = get_plan(observation)
502
504
  # get action
503
505
  if plan is None or len(plan) == 0:
506
+ if return_items:
507
+ return [[str(StopAction())]], [], []
504
508
  return [[str(StopAction())]], []
505
- # plan_recipe, new_inventory = plan[0]
509
+
506
510
  subplans = []
507
511
  action_items_used = []
508
512
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plancraft
3
- Version: 0.4.5
3
+ Version: 0.4.6
4
4
  Summary: Plancraft: an evaluation dataset for planning with LLM agents
5
5
  License: MIT License
6
6
 
@@ -17,7 +17,7 @@ plancraft/environment/__init__.py,sha256=XFsFny4lH195AwAmL-WeCaF9ZCMgc7IgXIwhQ8F
17
17
  plancraft/environment/actions.py,sha256=Pub21caxM5iZ9IaX-ny1-xxr_peJIwwV_QAx3BVSry0,11551
18
18
  plancraft/environment/env.py,sha256=B7VpIMcQKITyDmkHgBoR4KbmxmM1b4A6Y-1_b90EMXo,16428
19
19
  plancraft/environment/items.py,sha256=Z9rhSyVDEoHF1pxRvhyiT94tyQJaWHi3wUHVcamz82o,221
20
- plancraft/environment/planner.py,sha256=-ZN6MSQxMTNfexa6ixzzFKK-qBSB4jbxOJLtknnHju8,20437
20
+ plancraft/environment/planner.py,sha256=ZrCFQKyW5eqN07f5v4XUhnUxwK85gluWc5u7pEHMhiI,20517
21
21
  plancraft/environment/prompts.py,sha256=NU9YHAz3id-IgaukQvEi5uLlpEstpE5_Hccvvq1At2Y,6950
22
22
  plancraft/environment/recipes.py,sha256=0vwzOU86eZmGN2EpZVSIvzxpx0AOBWNPxTtAOFBN2A0,19570
23
23
  plancraft/environment/sampler.py,sha256=BworSMWQ-TLbV9068tkNOdo4ZLP-UDox6Laeb4Weu9k,7723
@@ -1923,7 +1923,7 @@ plancraft/models/generators.py,sha256=7COMLjjx_HbTWJqINNLqqExQv7gLikfLTViacAdSt5
1923
1923
  plancraft/models/oracle.py,sha256=f-0KWlBuHy6wcxmDsxM3MQ_QwfBstzfbA26mlk1MgLA,1657
1924
1924
  plancraft/models/utils.py,sha256=xgkP5jqCeFfkKe3Xd4ZYfTqiEJ-dA-qgFAC-J35ub3E,4029
1925
1925
  plancraft/train/dataset.py,sha256=oFqEd4LG9oEQ-71teh0Wf7-jJbtybT2ZibfM2bBdBkM,5474
1926
- plancraft-0.4.5.dist-info/METADATA,sha256=60Kf6bWIVm32lmbZdgsYr1qcg8_KoycH-TxL5fw0Wg8,12391
1927
- plancraft-0.4.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
1928
- plancraft-0.4.5.dist-info/licenses/LICENSE,sha256=YGR8ehDB4t-T-lOQKMfKNR-2zsOU7E3E5NA8t25HKE0,1070
1929
- plancraft-0.4.5.dist-info/RECORD,,
1926
+ plancraft-0.4.6.dist-info/METADATA,sha256=GYJLfVMx2iKQeXNhHUbhZsNTDND2ZNZCR6s1jDl0gv4,12391
1927
+ plancraft-0.4.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
1928
+ plancraft-0.4.6.dist-info/licenses/LICENSE,sha256=YGR8ehDB4t-T-lOQKMfKNR-2zsOU7E3E5NA8t25HKE0,1070
1929
+ plancraft-0.4.6.dist-info/RECORD,,