langchain-timbr 2.0.4__py3-none-any.whl → 2.1.1__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.
- langchain_timbr/_version.py +2 -2
- langchain_timbr/utils/timbr_llm_utils.py +6 -5
- {langchain_timbr-2.0.4.dist-info → langchain_timbr-2.1.1.dist-info}/METADATA +5 -9
- {langchain_timbr-2.0.4.dist-info → langchain_timbr-2.1.1.dist-info}/RECORD +6 -6
- {langchain_timbr-2.0.4.dist-info → langchain_timbr-2.1.1.dist-info}/WHEEL +0 -0
- {langchain_timbr-2.0.4.dist-info → langchain_timbr-2.1.1.dist-info}/licenses/LICENSE +0 -0
langchain_timbr/_version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '2.
|
|
32
|
-
__version_tuple__ = version_tuple = (2,
|
|
31
|
+
__version__ = version = '2.1.1'
|
|
32
|
+
__version_tuple__ = version_tuple = (2, 1, 1)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
@@ -180,6 +180,10 @@ def _get_response_text(response: Any) -> str:
|
|
|
180
180
|
else:
|
|
181
181
|
raise ValueError("Unexpected response format from LLM.")
|
|
182
182
|
|
|
183
|
+
if "QUESTION VALIDATION ERROR:" in response_text:
|
|
184
|
+
err = response_text.split("QUESTION VALIDATION ERROR:", 1)[1].strip()
|
|
185
|
+
raise ValueError(err)
|
|
186
|
+
|
|
183
187
|
return response_text
|
|
184
188
|
|
|
185
189
|
def _extract_usage_metadata(response: Any) -> dict:
|
|
@@ -282,7 +286,7 @@ def determine_concept(
|
|
|
282
286
|
response = _call_llm_with_timeout(llm, prompt, timeout=timeout)
|
|
283
287
|
except TimeoutError as e:
|
|
284
288
|
error = f"LLM call timed out: {str(e)}"
|
|
285
|
-
|
|
289
|
+
raise Exception(error)
|
|
286
290
|
except Exception as e:
|
|
287
291
|
error = f"LLM call failed: {str(e)}"
|
|
288
292
|
continue
|
|
@@ -505,10 +509,7 @@ def generate_sql(
|
|
|
505
509
|
response = _call_llm_with_timeout(llm, prompt, timeout=timeout)
|
|
506
510
|
except TimeoutError as e:
|
|
507
511
|
error = f"LLM call timed out: {str(e)}"
|
|
508
|
-
|
|
509
|
-
continue
|
|
510
|
-
else:
|
|
511
|
-
raise Exception(error)
|
|
512
|
+
raise Exception(error)
|
|
512
513
|
except Exception as e:
|
|
513
514
|
error = f"LLM call failed: {str(e)}"
|
|
514
515
|
if should_validate_sql:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: langchain-timbr
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.1
|
|
4
4
|
Summary: LangChain & LangGraph extensions that parse LLM prompts into Timbr semantic SQL and execute them.
|
|
5
5
|
Project-URL: Homepage, https://github.com/WPSemantix/langchain-timbr
|
|
6
6
|
Project-URL: Documentation, https://docs.timbr.ai/doc/docs/integration/langchain-sdk/
|
|
@@ -45,12 +45,10 @@ Requires-Dist: langchain==0.3.27; python_version >= '3.11'
|
|
|
45
45
|
Requires-Dist: langchain>=0.3.25; python_version == '3.10'
|
|
46
46
|
Requires-Dist: langgraph==0.6.8; python_version >= '3.11'
|
|
47
47
|
Requires-Dist: langgraph>=0.3.20; python_version == '3.10'
|
|
48
|
-
Requires-Dist: numpy==1.26.4; python_version >= '3.11'
|
|
49
|
-
Requires-Dist: numpy~=1.26.2; python_version == '3.10'
|
|
50
48
|
Requires-Dist: openai==2.1.0; python_version >= '3.11'
|
|
51
49
|
Requires-Dist: openai>=1.77.0; python_version == '3.10'
|
|
52
|
-
Requires-Dist:
|
|
53
|
-
Requires-Dist:
|
|
50
|
+
Requires-Dist: opentelemetry-api==1.38.0; python_version == '3.10'
|
|
51
|
+
Requires-Dist: opentelemetry-sdk==1.38.0; python_version == '3.10'
|
|
54
52
|
Requires-Dist: pydantic==2.10.4
|
|
55
53
|
Requires-Dist: pytest==8.3.4
|
|
56
54
|
Requires-Dist: pytimbr-api==2.0.0; python_version >= '3.11'
|
|
@@ -82,8 +80,6 @@ Requires-Dist: langchain-tests==0.3.22; (python_version >= '3.11') and extra ==
|
|
|
82
80
|
Requires-Dist: langchain-tests>=0.3.20; (python_version == '3.10') and extra == 'all'
|
|
83
81
|
Requires-Dist: openai==2.1.0; (python_version >= '3.11') and extra == 'all'
|
|
84
82
|
Requires-Dist: openai>=1.77.0; (python_version == '3.10') and extra == 'all'
|
|
85
|
-
Requires-Dist: pyarrow<20.0.0,>=19.0.1; (python_version == '3.10') and extra == 'all'
|
|
86
|
-
Requires-Dist: pyarrow==19.0.1; (python_version >= '3.11') and extra == 'all'
|
|
87
83
|
Requires-Dist: pytest==8.3.4; extra == 'all'
|
|
88
84
|
Requires-Dist: snowflake-snowpark-python==1.39.1; (python_version >= '3.11') and extra == 'all'
|
|
89
85
|
Requires-Dist: snowflake-snowpark-python>=1.39.1; (python_version == '3.10') and extra == 'all'
|
|
@@ -107,8 +103,6 @@ Requires-Dist: databricks-sdk==0.64.0; extra == 'databricks'
|
|
|
107
103
|
Provides-Extra: dev
|
|
108
104
|
Requires-Dist: langchain-tests==0.3.22; (python_version >= '3.11') and extra == 'dev'
|
|
109
105
|
Requires-Dist: langchain-tests>=0.3.20; (python_version == '3.10') and extra == 'dev'
|
|
110
|
-
Requires-Dist: pyarrow<20.0.0,>=19.0.1; (python_version == '3.10') and extra == 'dev'
|
|
111
|
-
Requires-Dist: pyarrow==19.0.1; (python_version >= '3.11') and extra == 'dev'
|
|
112
106
|
Requires-Dist: pytest==8.3.4; extra == 'dev'
|
|
113
107
|
Requires-Dist: uvicorn==0.34.0; extra == 'dev'
|
|
114
108
|
Provides-Extra: google
|
|
@@ -121,6 +115,8 @@ Requires-Dist: langchain-openai>=0.3.16; (python_version == '3.10') and extra ==
|
|
|
121
115
|
Requires-Dist: openai==2.1.0; (python_version >= '3.11') and extra == 'openai'
|
|
122
116
|
Requires-Dist: openai>=1.77.0; (python_version == '3.10') and extra == 'openai'
|
|
123
117
|
Provides-Extra: snowflake
|
|
118
|
+
Requires-Dist: opentelemetry-api==1.38.0; (python_version < '3.12') and extra == 'snowflake'
|
|
119
|
+
Requires-Dist: opentelemetry-sdk==1.38.0; (python_version < '3.12') and extra == 'snowflake'
|
|
124
120
|
Requires-Dist: snowflake-snowpark-python==1.39.1; (python_version >= '3.11') and extra == 'snowflake'
|
|
125
121
|
Requires-Dist: snowflake-snowpark-python>=1.39.1; (python_version == '3.10') and extra == 'snowflake'
|
|
126
122
|
Requires-Dist: snowflake==1.8.0; (python_version >= '3.11') and extra == 'snowflake'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
langchain_timbr/__init__.py,sha256=gxd6Y6QDmYZtPlYVdXtPIy501hMOZXHjWh2qq4qzt_s,828
|
|
2
|
-
langchain_timbr/_version.py,sha256=
|
|
2
|
+
langchain_timbr/_version.py,sha256=10rtKChhKY7E9UCGIjqmwXBgTWP9LtAc0YieT2NpTzw,704
|
|
3
3
|
langchain_timbr/config.py,sha256=PEtvNgvnA9UseZJjKgup_O6xdG-VYk3N11nH8p8W1Kg,1410
|
|
4
4
|
langchain_timbr/timbr_llm_connector.py,sha256=1jDicBZkW7CKB-PvQiQ1_AMXYm9JJHaoNaPqy54nhh8,13096
|
|
5
5
|
langchain_timbr/langchain/__init__.py,sha256=ejcsZKP9PK0j4WrrCCcvBXpDpP-TeRiVb21OIUJqix8,580
|
|
@@ -20,9 +20,9 @@ langchain_timbr/llm_wrapper/timbr_llm_wrapper.py,sha256=sDqDOz0qu8b4WWlagjNceswM
|
|
|
20
20
|
langchain_timbr/utils/general.py,sha256=MtY-ZExKJrcBzV3EQNn6G1ESKpiQB2hJCp95BrUayUo,5707
|
|
21
21
|
langchain_timbr/utils/prompt_service.py,sha256=QT7kiq72rQno77z1-tvGGD7HlH_wdTQAl_1teSoKEv4,11373
|
|
22
22
|
langchain_timbr/utils/temperature_supported_models.json,sha256=d3UmBUpG38zDjjB42IoGpHTUaf0pHMBRSPY99ao1a3g,1832
|
|
23
|
-
langchain_timbr/utils/timbr_llm_utils.py,sha256=
|
|
23
|
+
langchain_timbr/utils/timbr_llm_utils.py,sha256=c50-dEDh8GnAkDfcbNKdXuOWjbSa-mXpZzDVuNt4jTY,23053
|
|
24
24
|
langchain_timbr/utils/timbr_utils.py,sha256=p21DwTGhF4iKTLDQBkeBaJDFcXt-Hpu1ij8xzQt00Ng,16958
|
|
25
|
-
langchain_timbr-2.
|
|
26
|
-
langchain_timbr-2.
|
|
27
|
-
langchain_timbr-2.
|
|
28
|
-
langchain_timbr-2.
|
|
25
|
+
langchain_timbr-2.1.1.dist-info/METADATA,sha256=R9nI1TJSS6jZ8OzdVFZurSacEOc2XOGLT944w3yWtss,12268
|
|
26
|
+
langchain_timbr-2.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
27
|
+
langchain_timbr-2.1.1.dist-info/licenses/LICENSE,sha256=0ITGFk2alkC7-e--bRGtuzDrv62USIiVyV2Crf3_L_0,1065
|
|
28
|
+
langchain_timbr-2.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|