llm-to-json 0.0.33__py3-none-any.whl → 0.0.35__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.
llm_to_json/__init__.py CHANGED
@@ -6,14 +6,15 @@ except Exception:
6
6
  from prompture.core import extract_and_jsonify as _extract_and_jsonify
7
7
  from prompture.drivers import OllamaDriver
8
8
 
9
+
9
10
  def from_llm_text(text: str, schema: dict, driver: dict | None = None):
10
11
  """Extract JSON from text using LLM.
11
-
12
+
12
13
  Args:
13
14
  text: Text to extract JSON from
14
15
  schema: JSON schema to validate against
15
16
  driver: Optional LLM driver (defaults to local Ollama if not provided)
16
-
17
+
17
18
  Returns:
18
19
  Extracted and validated JSON object
19
20
  """
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llm-to-json
3
- Version: 0.0.33
3
+ Version: 0.0.35
4
4
  Summary: Tiny wrapper exposing Prompture helpers to convert LLM output into JSON.
5
5
  Author-email: Juan Denis <juan@vene.co>
6
6
  License: MIT
7
7
  Keywords: llm,json,prompt,structured-output
8
8
  Requires-Python: >=3.10
9
9
  Description-Content-Type: text/markdown
10
- Requires-Dist: prompture>=0.0.33
10
+ Requires-Dist: prompture>=0.0.35
11
11
 
12
12
  # llm-to-json
13
13
 
@@ -0,0 +1,5 @@
1
+ llm_to_json/__init__.py,sha256=GWm3JMH1oxrhGN5E7CyxaxkwR33eU0padgyPFOakgy8,867
2
+ llm_to_json-0.0.35.dist-info/METADATA,sha256=5-snzXP5bAluZ1sYJidSxDaRhAjTe9VE04FrxQa7sv4,796
3
+ llm_to_json-0.0.35.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
4
+ llm_to_json-0.0.35.dist-info/top_level.txt,sha256=hL_ltOEZzqwDE-EMjHKgJMvpIHri6GCtk3ppiWvP168,12
5
+ llm_to_json-0.0.35.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- llm_to_json/__init__.py,sha256=hHELkXrXL2WkvWHvi9ucN9jry_xNQduaqFZqBWlWOwQ,874
2
- llm_to_json-0.0.33.dist-info/METADATA,sha256=QAX9iGUWOgj5eOpSP8acb8s5ECoJpJJeBY3tdriZxxI,796
3
- llm_to_json-0.0.33.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
4
- llm_to_json-0.0.33.dist-info/top_level.txt,sha256=hL_ltOEZzqwDE-EMjHKgJMvpIHri6GCtk3ppiWvP168,12
5
- llm_to_json-0.0.33.dist-info/RECORD,,