llm-to-json 0.0.32__py3-none-any.whl → 0.0.34__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 +3 -2
- {llm_to_json-0.0.32.dist-info → llm_to_json-0.0.34.dist-info}/METADATA +2 -2
- llm_to_json-0.0.34.dist-info/RECORD +5 -0
- {llm_to_json-0.0.32.dist-info → llm_to_json-0.0.34.dist-info}/WHEEL +1 -1
- llm_to_json-0.0.32.dist-info/RECORD +0 -5
- {llm_to_json-0.0.32.dist-info → llm_to_json-0.0.34.dist-info}/top_level.txt +0 -0
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.
|
|
3
|
+
Version: 0.0.34
|
|
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.
|
|
10
|
+
Requires-Dist: prompture>=0.0.34
|
|
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.34.dist-info/METADATA,sha256=q1eNLEIG-ekWW4lxLA_3UZDMSdi75A12iwFG22ncIYg,796
|
|
3
|
+
llm_to_json-0.0.34.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
4
|
+
llm_to_json-0.0.34.dist-info/top_level.txt,sha256=hL_ltOEZzqwDE-EMjHKgJMvpIHri6GCtk3ppiWvP168,12
|
|
5
|
+
llm_to_json-0.0.34.dist-info/RECORD,,
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
llm_to_json/__init__.py,sha256=hHELkXrXL2WkvWHvi9ucN9jry_xNQduaqFZqBWlWOwQ,874
|
|
2
|
-
llm_to_json-0.0.32.dist-info/METADATA,sha256=4FA5s6tySmu01h6oBEC5s_b6pUk8Q94ZJv9T8psWGq4,796
|
|
3
|
-
llm_to_json-0.0.32.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
4
|
-
llm_to_json-0.0.32.dist-info/top_level.txt,sha256=hL_ltOEZzqwDE-EMjHKgJMvpIHri6GCtk3ppiWvP168,12
|
|
5
|
-
llm_to_json-0.0.32.dist-info/RECORD,,
|
|
File without changes
|