plancraft 0.3.20__py3-none-any.whl → 0.3.21__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/environment/actions.py +20 -0
- plancraft/environment/search.py +4 -0
- {plancraft-0.3.20.dist-info → plancraft-0.3.21.dist-info}/METADATA +1 -1
- {plancraft-0.3.20.dist-info → plancraft-0.3.21.dist-info}/RECORD +6 -6
- {plancraft-0.3.20.dist-info → plancraft-0.3.21.dist-info}/WHEEL +0 -0
- {plancraft-0.3.20.dist-info → plancraft-0.3.21.dist-info}/licenses/LICENSE +0 -0
plancraft/environment/actions.py
CHANGED
@@ -200,6 +200,12 @@ class MoveActionHandler(ActionHandlerBase):
|
|
200
200
|
def prompt_format_example(self) -> str:
|
201
201
|
return "`move: from [Source] to [Target] with quantity N`"
|
202
202
|
|
203
|
+
@property
|
204
|
+
def regex_pattern(self) -> str:
|
205
|
+
return (
|
206
|
+
r"move: from \[(0|[ABCI][0-9])\] to \[(0|[ABCI][0-9])\] with quantity \d+"
|
207
|
+
)
|
208
|
+
|
203
209
|
@property
|
204
210
|
def action_name(self) -> str:
|
205
211
|
return "move"
|
@@ -236,6 +242,12 @@ class SmeltActionHandler(ActionHandlerBase):
|
|
236
242
|
def prompt_format_example(self) -> str:
|
237
243
|
return "`smelt: from [Source] to [Target] with quantity N`"
|
238
244
|
|
245
|
+
@property
|
246
|
+
def regex_pattern(self) -> str:
|
247
|
+
return (
|
248
|
+
r"smelt: from \[(0|[ABCI][0-9])\] to \[(0|[ABCI][0-9])\] with quantity \d+"
|
249
|
+
)
|
250
|
+
|
239
251
|
@property
|
240
252
|
def action_name(self) -> str:
|
241
253
|
return "smelt"
|
@@ -273,6 +285,10 @@ class ImpossibleActionHandler(ActionHandlerBase):
|
|
273
285
|
def prompt_format_example(self) -> str:
|
274
286
|
return "`impossible: <reason>`"
|
275
287
|
|
288
|
+
@property
|
289
|
+
def regex_pattern(self) -> str:
|
290
|
+
return r"impossible: .+"
|
291
|
+
|
276
292
|
@property
|
277
293
|
def action_name(self) -> str:
|
278
294
|
return "impossible"
|
@@ -302,6 +318,10 @@ class ThinkActionHandler(ActionHandlerBase):
|
|
302
318
|
def prompt_format_example(self) -> str:
|
303
319
|
return "`think: <thought message>`"
|
304
320
|
|
321
|
+
@property
|
322
|
+
def regex_pattern(self) -> str:
|
323
|
+
return r"think: .+"
|
324
|
+
|
305
325
|
@property
|
306
326
|
def action_name(self) -> str:
|
307
327
|
return "think"
|
plancraft/environment/search.py
CHANGED
@@ -38,6 +38,10 @@ class GoldSearchActionHandler(ActionHandlerBase):
|
|
38
38
|
def prompt_format_example(self) -> str:
|
39
39
|
return "`search: <recipe name>`"
|
40
40
|
|
41
|
+
@property
|
42
|
+
def regex_pattern(self) -> str:
|
43
|
+
return r"search: \w+"
|
44
|
+
|
41
45
|
@property
|
42
46
|
def action_name(self) -> str:
|
43
47
|
return "search"
|
@@ -11,14 +11,14 @@ 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=
|
14
|
+
plancraft/environment/actions.py,sha256=XRy7Md3Icg-4VqxL7a4vD3o5cp0VX1aS2wcQlonMWfw,10501
|
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
|
18
18
|
plancraft/environment/prompts.py,sha256=8QXclX0ygpL02uZichE1AVkbdn_0HGteD5bzo0FZGOU,6947
|
19
19
|
plancraft/environment/recipes.py,sha256=0vwzOU86eZmGN2EpZVSIvzxpx0AOBWNPxTtAOFBN2A0,19570
|
20
20
|
plancraft/environment/sampler.py,sha256=79hLpTU0ajvMPoBsvSe8tE88x31c8Vlczb3tJZJcau0,7441
|
21
|
-
plancraft/environment/search.py,sha256=
|
21
|
+
plancraft/environment/search.py,sha256=EVyg8Gf0FpXWcy58PU9p17x2PsrAGH5FmgSb0OyouI8,2116
|
22
22
|
plancraft/environment/assets/constants.json,sha256=kyOIOh82CTTMMGEIS60k5k6M-6fkEmYDoGAnvi3Zx5k,1379016
|
23
23
|
plancraft/environment/assets/minecraft_font.ttf,sha256=AzoK9cgggXwjFPHtIO7uz-YaDrminl3nvB-VsaTvTAk,60992
|
24
24
|
plancraft/environment/assets/table.png,sha256=IKIViZKAPyR4FWnS0JP9AZ19vIEO3qoS5-YRGAO1ow8,5430
|
@@ -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.
|
1924
|
-
plancraft-0.3.
|
1925
|
-
plancraft-0.3.
|
1926
|
-
plancraft-0.3.
|
1923
|
+
plancraft-0.3.21.dist-info/METADATA,sha256=oP-NPygFEwPZX_dRJu4hy5MnwHcHEuTNUQJXFFNIK2M,11148
|
1924
|
+
plancraft-0.3.21.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
1925
|
+
plancraft-0.3.21.dist-info/licenses/LICENSE,sha256=YGR8ehDB4t-T-lOQKMfKNR-2zsOU7E3E5NA8t25HKE0,1070
|
1926
|
+
plancraft-0.3.21.dist-info/RECORD,,
|
File without changes
|
File without changes
|