langchain-timbr 2.0.4__py3-none-any.whl → 2.1.0__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.
@@ -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.0.4'
32
- __version_tuple__ = version_tuple = (2, 0, 4)
31
+ __version__ = version = '2.1.0'
32
+ __version_tuple__ = version_tuple = (2, 1, 0)
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langchain-timbr
3
- Version: 2.0.4
3
+ Version: 2.1.0
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: pyarrow<20.0.0,>=19.0.1; python_version == '3.10'
53
- Requires-Dist: pyarrow==19.0.1; python_version >= '3.11'
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=922NdOI3zEr3qq7FLo7Lgu6-ppZZIIPboyCzU-pnARo,704
2
+ langchain_timbr/_version.py,sha256=6G8yJbldQAMT0M9ZiFAqGo5OVqUMxGB1aeWeKmrwNIE,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=m-RzPePiCzTQCVMcrbD5hlzQZ-kPrnG2_4uOa5DL9AU,22959
23
+ langchain_timbr/utils/timbr_llm_utils.py,sha256=g8bHzymnwmrnffYh0KMQ7j2hGvYcbjAqQInZfE9b5io,23122
24
24
  langchain_timbr/utils/timbr_utils.py,sha256=p21DwTGhF4iKTLDQBkeBaJDFcXt-Hpu1ij8xzQt00Ng,16958
25
- langchain_timbr-2.0.4.dist-info/METADATA,sha256=r5f9N6-YWS7vx_nWOPqsgDpjr5Zy7IBw5HzBt0ONIqM,12508
26
- langchain_timbr-2.0.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
- langchain_timbr-2.0.4.dist-info/licenses/LICENSE,sha256=0ITGFk2alkC7-e--bRGtuzDrv62USIiVyV2Crf3_L_0,1065
28
- langchain_timbr-2.0.4.dist-info/RECORD,,
25
+ langchain_timbr-2.1.0.dist-info/METADATA,sha256=RwwECPHKJAGuRb9PcaSVfeMPgbGjudLV6xMjDH0sRQU,12268
26
+ langchain_timbr-2.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
+ langchain_timbr-2.1.0.dist-info/licenses/LICENSE,sha256=0ITGFk2alkC7-e--bRGtuzDrv62USIiVyV2Crf3_L_0,1065
28
+ langchain_timbr-2.1.0.dist-info/RECORD,,