llguidance 1.1.1__cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl → 1.1.2__cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.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.
llguidance/_lib.abi3.so CHANGED
Binary file
llguidance/_lib.pyi CHANGED
@@ -565,6 +565,7 @@ class LLParserLimits:
565
565
  max_lexer_states: Optional[int] = None,
566
566
  max_grammar_size: Optional[int] = None,
567
567
  precompute_large_lexemes: Optional[bool] = None,
568
+ verbose_errors: Optional[bool] = None,
568
569
  ) -> None:
569
570
  """
570
571
  ParserLimits configuration for controlling parser and lexer resource usage.
@@ -597,6 +598,10 @@ class LLParserLimits:
597
598
  precompute_large_lexemes (Optional[bool]):
598
599
  Whether to run large regexes eagerly on the entire token trie during lexer build.
599
600
  Increases lexer construction time, but speeds up mask computation. Default: True.
601
+
602
+ verbose_errors (Optional[bool]):
603
+ If true, include parser state and grammar details in error messages.
604
+ Useful for debugging; may leak schema/state in logs. Default: True.
600
605
  """
601
606
 
602
607
  @property
@@ -627,6 +632,10 @@ class LLParserLimits:
627
632
  def precompute_large_lexemes(self) -> bool:
628
633
  """Precompute large regexes during lexer construction. Default: True"""
629
634
 
635
+ @property
636
+ def verbose_errors(self) -> bool:
637
+ """Include parser state and grammar in errors. Default: True"""
638
+
630
639
 
631
640
  def regex_to_lark(regex: str, use_ascii: str = "d") -> str:
632
641
  r"""
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llguidance
3
- Version: 1.1.1
3
+ Version: 1.1.2
4
4
  License-File: LICENSE
5
5
  Summary: Bindings for the Low-level Guidance (llguidance) Rust library for use within Guidance
6
6
  Author: Michal Moskal
7
- License: MIT
7
+ License-Expression: MIT
8
8
  Requires-Python: >=3.9
9
9
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
10
10
  Project-URL: repository, https://github.com/microsoft/llguidance
@@ -1,10 +1,10 @@
1
- llguidance-1.1.1.dist-info/METADATA,sha256=DvMvXzhwcvLyd3X4laEvyQo8P-eW2Yc_jb5zxtAn-X4,10289
2
- llguidance-1.1.1.dist-info/WHEEL,sha256=N4zYPxjDuMK2CH0KfpQYCoIGbHkQBrSM4J6fNEhbDAM,123
3
- llguidance-1.1.1.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
1
+ llguidance-1.1.2.dist-info/METADATA,sha256=CcBfni8m-8SJTKFhZXxNKOrUbamYuOqXFIyvmpceptE,10300
2
+ llguidance-1.1.2.dist-info/WHEEL,sha256=yYlM2h2s1wLUBBuOkD1Pp7OUJXcu9cZRFExBZ5Rzf98,123
3
+ llguidance-1.1.2.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
4
4
  llguidance/__init__.py,sha256=F9svXvm6oafbuUf_eq34PHJV4c7-yN133vmbWN6nIkc,590
5
5
  llguidance/_grammar_from.py,sha256=-vHqkPqJe6t0JKKuQhlUu08kYpPIVknMh8tZlh8FYeQ,2384
6
- llguidance/_lib.abi3.so,sha256=fUYZg38j75xcuFC5y8GwaQ0aM2Qya31zoOwxEbBtXTQ,8293592
7
- llguidance/_lib.pyi,sha256=HFe4XkQR7Moey9T6uJ8INrzTsACJReWaBwcYExK4yj4,22230
6
+ llguidance/_lib.abi3.so,sha256=dfPcYnnRbIoWQyBRVvX73z0DwZtcBC4bmnw-wKw_I-o,8297680
7
+ llguidance/_lib.pyi,sha256=WIiIRVO5GKfGpowqy7wBmpgXMQ9Z7dXs4WVcOTT78cs,22617
8
8
  llguidance/_struct_tag.py,sha256=83okmGWShxZud7S2vHjPRiInhFw0QVTHkeN8wtR8hR8,4430
9
9
  llguidance/_tokenizer.py,sha256=yC-RcgyMZN-olV-PnN4XkjlH-fOU8E9jrwO8VkXLv4M,1084
10
10
  llguidance/_util.py,sha256=6JV5SxjoH7hZPaSHhPRD_G6JzIhbKFFTqWTpp88VIiU,260
@@ -17,4 +17,4 @@ llguidance/numpy.py,sha256=Z4888IfdT5oAfq4m2gn6ARfkaJ9d7nxMS79g_t8aXkg,2653
17
17
  llguidance/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  llguidance/tiktoken.py,sha256=-mYDPxq4LM2FI9K8kLL0Us0qN-fZpNK0qIwboDPjfSk,1101
19
19
  llguidance/torch.py,sha256=7LmVtRX8-fdUULcpPh4KYuDwVrHFJEvyVxzhyQflpgM,2795
20
- llguidance-1.1.1.dist-info/RECORD,,
20
+ llguidance-1.1.2.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: maturin (1.9.1)
2
+ Generator: maturin (1.9.3)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp39-abi3-manylinux_2_17_i686.manylinux2014_i686