langfun 0.1.2.dev202506260804__py3-none-any.whl → 0.1.2.dev202506270804__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.
@@ -32,7 +32,6 @@ from langfun.core.coding.python.correction import correct
32
32
  from langfun.core.coding.python.correction import run_with_correction
33
33
  from langfun.core.coding.python.correction import CodeWithError
34
34
 
35
- from langfun.core.coding.python.sandboxing import Sandbox
36
35
  from langfun.core.coding.python.sandboxing import SandboxOutput
37
36
  from langfun.core.coding.python.sandboxing import MultiProcessingSandbox
38
37
 
@@ -16,7 +16,7 @@
16
16
  import abc
17
17
  import os
18
18
  import tempfile
19
- from typing import Annotated, Protocol, Self
19
+ from typing import Annotated
20
20
 
21
21
  from langfun.core.coding.python import parsing
22
22
  import pyglove as pg
@@ -41,33 +41,6 @@ class SandboxOutput(pg.Object):
41
41
  ] = {}
42
42
 
43
43
 
44
- class Sandbox(Protocol):
45
- """Interface for Python sandbox."""
46
-
47
- def run(
48
- self,
49
- code: str,
50
- **kwargs,
51
- ) -> SandboxOutput:
52
- """Runs code in the sandbox."""
53
-
54
- def upload(
55
- self,
56
- path: str,
57
- **kwargs,
58
- ) -> str:
59
- """Uploads a file to the sandbox."""
60
-
61
- def clone(self) -> 'Sandbox':
62
- """Clones the sandbox."""
63
-
64
- def __enter__(self) -> Self:
65
- """Sandboxes should be used as a context manager."""
66
-
67
- def __exit__(self, exc_type, exc_value, traceback) -> None:
68
- """Sandboxes should be used as a context manager."""
69
-
70
-
71
44
  class BaseSandbox(pg.Object):
72
45
  """Interface and partial implementation for Python sandbox."""
73
46
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langfun
3
- Version: 0.1.2.dev202506260804
3
+ Version: 0.1.2.dev202506270804
4
4
  Summary: Langfun: Language as Functions.
5
5
  Home-page: https://github.com/google/langfun
6
6
  Author: Langfun Authors
@@ -31,7 +31,7 @@ langfun/core/agentic/action_eval.py,sha256=YTilyUEkJl_8FVMgdfO17PurWWaEJ6oA15Cue
31
31
  langfun/core/agentic/action_eval_test.py,sha256=7AkOwNbUX-ZgR1R0a7bvUZ5abNTUV7blf_8Mnrwb-II,2811
32
32
  langfun/core/agentic/action_test.py,sha256=46piw5J7vGwmJGjmVG13HQRBmp5TLgkV_ymJ2EQVEIc,15867
33
33
  langfun/core/coding/__init__.py,sha256=5utju_fwEsImaiftx4oXKl9FAM8p281k8-Esdh_-m1w,835
34
- langfun/core/coding/python/__init__.py,sha256=4ByknuoNU-mOIHwHKnTtmo6oD64oMFtlqPlYWmA5Wic,1736
34
+ langfun/core/coding/python/__init__.py,sha256=yTXm92oLpQb4A-fZ2qy-bzfhPYND7B-oidtbv1PNaX0,1678
35
35
  langfun/core/coding/python/correction.py,sha256=4PD76Xfv36Xrm8Ji3-GgGDNImtcDqWfMw3z6ircJMlM,7285
36
36
  langfun/core/coding/python/correction_test.py,sha256=sie88lAbsV15bvkRcYC88pgToybZYXI32Xmg_ym5V1A,4175
37
37
  langfun/core/coding/python/execution.py,sha256=tsXnJ-11RqNDro0C-6LwbHkqPuNVJ_cLxAq8-C5Wz20,4442
@@ -40,7 +40,7 @@ langfun/core/coding/python/generation.py,sha256=sA6t97qBflO3WtuL9axknEVQPgqXHeqa
40
40
  langfun/core/coding/python/generation_test.py,sha256=dcF5ef1UApzRfTpvICiChpynkzZ1mDsE0DvH0iMpTvg,2743
41
41
  langfun/core/coding/python/parsing.py,sha256=jvGDIwoaY3mdGXeFhjP27w0ukO0TtdCC7G4ODVNp8S4,4554
42
42
  langfun/core/coding/python/parsing_test.py,sha256=PIexYpSEhgNaSd4T6QYWzWHzm3sL4VhQJ4dhdvJAQk8,5005
43
- langfun/core/coding/python/sandboxing.py,sha256=bp_l9XVzDvuhrbxnpm0xDghKrPdqCxj7reL6cCxFTIo,4729
43
+ langfun/core/coding/python/sandboxing.py,sha256=ppeE4E9rwVpMO2wxZN6dA2OwSMyD2hQ9eafRNA8s_D4,4148
44
44
  langfun/core/coding/python/sandboxing_test.py,sha256=H_0_pd-_uS-ci5yYhmDTR6-hyzosAFkExziAHndfdDo,2023
45
45
  langfun/core/data/__init__.py,sha256=qllw9ST1vveZv-1E0VM5hezn1YH-OcqGI-yFqQYnWgI,732
46
46
  langfun/core/data/conversion/__init__.py,sha256=ZcGntBruvvZSfESO-Tha1nzHfgWEK7I1u78Jw8gsoVU,883
@@ -156,8 +156,8 @@ langfun/core/templates/demonstration.py,sha256=vCrgYubdZM5Umqcgp8NUVGXgr4P_c-fik
156
156
  langfun/core/templates/demonstration_test.py,sha256=SafcDQ0WgI7pw05EmPI2S4v1t3ABKzup8jReCljHeK4,2162
157
157
  langfun/core/templates/selfplay.py,sha256=yhgrJbiYwq47TgzThmHrDQTF4nDrTI09CWGhuQPNv-s,2273
158
158
  langfun/core/templates/selfplay_test.py,sha256=Ot__1P1M8oJfoTp-M9-PQ6HUXqZKyMwvZ5f7yQ3yfyM,2326
159
- langfun-0.1.2.dev202506260804.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
160
- langfun-0.1.2.dev202506260804.dist-info/METADATA,sha256=NQpc4kGauaQeKVVYTyt65znOYgwycKLe6K_HpBpPnok,8178
161
- langfun-0.1.2.dev202506260804.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
162
- langfun-0.1.2.dev202506260804.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
163
- langfun-0.1.2.dev202506260804.dist-info/RECORD,,
159
+ langfun-0.1.2.dev202506270804.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
160
+ langfun-0.1.2.dev202506270804.dist-info/METADATA,sha256=lgctxYl3GSEI01JyeL5RxkBux2vxFOskF2vwa_tArX8,8178
161
+ langfun-0.1.2.dev202506270804.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
162
+ langfun-0.1.2.dev202506270804.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
163
+ langfun-0.1.2.dev202506270804.dist-info/RECORD,,