baml-py 0.206.1__cp38-abi3-win_arm64.whl → 0.207.1__cp38-abi3-win_arm64.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.
baml_py/baml_py.pyd CHANGED
Binary file
baml_py/baml_py.pyi CHANGED
@@ -29,7 +29,7 @@ def set_log_max_chunk_length(length: int) -> None:
29
29
  class AbortController:
30
30
  """Controller for cancelling BAML operations."""
31
31
 
32
- def __init__(self, timeout_ms: Optional[int] = None) -> None:
32
+ def __init__(self, timeout_ms: Optional[int] = None) -> None:
33
33
  """
34
34
  Creates a new abort controller with an optional timeout in milliseconds.
35
35
  Once aborted, the AbortController will forever remain in an an aborted state.
@@ -39,16 +39,15 @@ class AbortController:
39
39
  timeout_ms: The timeout in milliseconds. If not provided, AbortController will not timeout.
40
40
  """
41
41
  ...
42
-
43
42
 
44
- def abort(self) -> None:
43
+ def abort(self) -> None:
45
44
  """
46
45
  Immediately abort all operations.
47
46
  """
48
47
  ...
49
48
 
50
49
  @property
51
- def aborted(self) -> bool:
50
+ def aborted(self) -> bool:
52
51
  """
53
52
  Check the state of this controller.
54
53
  Once aborted, the AbortController will forever remain in an an aborted state.
@@ -78,6 +77,7 @@ class FunctionResult:
78
77
  class_module: Any,
79
78
  partial_class_module: Any,
80
79
  allow_partials: bool,
80
+ runtime: BamlRuntime,
81
81
  ) -> Any: ...
82
82
 
83
83
  # This is a debug function that returns the internal representation of the response
@@ -434,6 +434,8 @@ class Usage:
434
434
  def input_tokens(self) -> Optional[int]: ...
435
435
  @property
436
436
  def output_tokens(self) -> Optional[int]: ...
437
+ @property
438
+ def cached_input_tokens(self) -> Optional[int]: ...
437
439
 
438
440
  class Timing:
439
441
  def __init__(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: baml-py
3
- Version: 0.206.1
3
+ Version: 0.207.1
4
4
  License-File: LICENSE
5
5
  Summary: BAML python bindings (pyproject.toml)
6
6
  Author-email: Boundary <contact@boundaryml.com>
@@ -1,10 +1,10 @@
1
- baml_py-0.206.1.dist-info/METADATA,sha256=mtG6kB8HhhSL5vG-hLgSvueVWxZQjbnHGkR27oecuxI,305
2
- baml_py-0.206.1.dist-info/WHEEL,sha256=wRfj8GLw6XkUkX0dkamG42TDgUgPnSOCdLYcT08AD6w,94
3
- baml_py-0.206.1.dist-info/entry_points.txt,sha256=9Uu_VcUjoI2qQMjVb0PRjEgI6pQ55WqBbzNparAPJyA,54
4
- baml_py-0.206.1.dist-info/licenses/LICENSE,sha256=WtjCEwlcVzkh1ziO35P2qfVEkLjr87Flro7xlHz3CEY,11556
1
+ baml_py-0.207.1.dist-info/METADATA,sha256=C2Ep_vE1jRdunXGoa7Vde1QI5CI1vCkdsX314gGLO_M,305
2
+ baml_py-0.207.1.dist-info/WHEEL,sha256=wRfj8GLw6XkUkX0dkamG42TDgUgPnSOCdLYcT08AD6w,94
3
+ baml_py-0.207.1.dist-info/entry_points.txt,sha256=C5Qb3JdnQK_6tOFKhrAJnEJsMSQzSoluojZp7aDNZGk,86
4
+ baml_py-0.207.1.dist-info/licenses/LICENSE,sha256=WtjCEwlcVzkh1ziO35P2qfVEkLjr87Flro7xlHz3CEY,11556
5
5
  baml_py/__init__.py,sha256=iya4VPU6rBDBAjRnRVTjr0lsagfUV289picJ8HGZA34,991
6
- baml_py/baml_py.pyd,sha256=sONe3mz-l89MB6UlL0jkUv055dPzgsu67F0vSqNIq-Q,43695104
7
- baml_py/baml_py.pyi,sha256=fSzeuH16A-SXnR-UYOIaDmyx52sDr36Izbpe23Vlk0o,17347
6
+ baml_py/baml_py.pyd,sha256=VJQQddO_SX-S27bS-L4rdZNWAV2-A2tWppKwcU0qM_0,43958784
7
+ baml_py/baml_py.pyi,sha256=gg13h4UKKXzSMg9OrgHL0Gm06qG36LBCxLdIrco-_SA,17441
8
8
  baml_py/ctx_manager.py,sha256=KLsEi-clqnabNKR-R2hCoBd3SxY5uxZqBl1AFgfejng,6268
9
9
  baml_py/errors.py,sha256=IVgxDwBuB_4S2WxYq3DMko_OVY2clNxNallEMDSwFAQ,453
10
10
  baml_py/internal_monkeypatch.py,sha256=eX9LK0xtZqVpWYhCEqLPqYmP2NKzharE5j64h7CFFxI,2155
@@ -13,4 +13,4 @@ baml_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  baml_py/safe_import.py,sha256=gV6nMqBx-O6INutLxGSdfKzgtICx4WjXV40uz_NKwhQ,2971
14
14
  baml_py/stream.py,sha256=cY9biE_V3SqOEQFqWTttW3wPOh7RhOHOD1fDifEylR8,7068
15
15
  baml_py/type_builder.py,sha256=qTEQSU3aZn-D9r_KS0z2sI6yo0XXbXA0h6gxN4nqcrU,5804
16
- baml_py-0.206.1.dist-info/RECORD,,
16
+ baml_py-0.207.1.dist-info/RECORD,,
@@ -1,2 +1,3 @@
1
1
  [console_scripts]
2
2
  baml-cli=baml_py:invoke_runtime_cli
3
+ baml=baml_py:invoke_runtime_cli