nvidia-nat-langchain 1.4.0a20251031__py3-none-any.whl → 1.4.0a20251129__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.
Potentially problematic release.
This version of nvidia-nat-langchain might be problematic. Click here for more details.
- nat/plugins/langchain/embedder.py +11 -3
- nat/plugins/langchain/llm.py +17 -6
- {nvidia_nat_langchain-1.4.0a20251031.dist-info → nvidia_nat_langchain-1.4.0a20251129.dist-info}/METADATA +2 -2
- {nvidia_nat_langchain-1.4.0a20251031.dist-info → nvidia_nat_langchain-1.4.0a20251129.dist-info}/RECORD +9 -9
- {nvidia_nat_langchain-1.4.0a20251031.dist-info → nvidia_nat_langchain-1.4.0a20251129.dist-info}/WHEEL +0 -0
- {nvidia_nat_langchain-1.4.0a20251031.dist-info → nvidia_nat_langchain-1.4.0a20251129.dist-info}/entry_points.txt +0 -0
- {nvidia_nat_langchain-1.4.0a20251031.dist-info → nvidia_nat_langchain-1.4.0a20251129.dist-info}/licenses/LICENSE-3rd-party.txt +0 -0
- {nvidia_nat_langchain-1.4.0a20251031.dist-info → nvidia_nat_langchain-1.4.0a20251129.dist-info}/licenses/LICENSE.md +0 -0
- {nvidia_nat_langchain-1.4.0a20251031.dist-info → nvidia_nat_langchain-1.4.0a20251129.dist-info}/top_level.txt +0 -0
|
@@ -28,7 +28,13 @@ async def azure_openai_langchain(embedder_config: AzureOpenAIEmbedderModelConfig
|
|
|
28
28
|
|
|
29
29
|
from langchain_openai import AzureOpenAIEmbeddings
|
|
30
30
|
|
|
31
|
-
client = AzureOpenAIEmbeddings(
|
|
31
|
+
client = AzureOpenAIEmbeddings(
|
|
32
|
+
**embedder_config.model_dump(exclude={"type", "api_version"},
|
|
33
|
+
by_alias=True,
|
|
34
|
+
exclude_none=True,
|
|
35
|
+
exclude_unset=True),
|
|
36
|
+
api_version=embedder_config.api_version,
|
|
37
|
+
)
|
|
32
38
|
|
|
33
39
|
if isinstance(embedder_config, RetryMixin):
|
|
34
40
|
client = patch_with_retry(client,
|
|
@@ -44,7 +50,8 @@ async def nim_langchain(embedder_config: NIMEmbedderModelConfig, builder: Builde
|
|
|
44
50
|
|
|
45
51
|
from langchain_nvidia_ai_endpoints import NVIDIAEmbeddings
|
|
46
52
|
|
|
47
|
-
client = NVIDIAEmbeddings(
|
|
53
|
+
client = NVIDIAEmbeddings(
|
|
54
|
+
**embedder_config.model_dump(exclude={"type"}, by_alias=True, exclude_none=True, exclude_unset=True))
|
|
48
55
|
|
|
49
56
|
if isinstance(embedder_config, RetryMixin):
|
|
50
57
|
client = patch_with_retry(client,
|
|
@@ -60,7 +67,8 @@ async def openai_langchain(embedder_config: OpenAIEmbedderModelConfig, builder:
|
|
|
60
67
|
|
|
61
68
|
from langchain_openai import OpenAIEmbeddings
|
|
62
69
|
|
|
63
|
-
client = OpenAIEmbeddings(
|
|
70
|
+
client = OpenAIEmbeddings(
|
|
71
|
+
**embedder_config.model_dump(exclude={"type"}, by_alias=True, exclude_none=True, exclude_unset=True))
|
|
64
72
|
|
|
65
73
|
if isinstance(embedder_config, RetryMixin):
|
|
66
74
|
client = patch_with_retry(client,
|
nat/plugins/langchain/llm.py
CHANGED
|
@@ -122,6 +122,7 @@ async def aws_bedrock_langchain(llm_config: AWSBedrockModelConfig, _builder: Bui
|
|
|
122
122
|
exclude={"type", "context_size", "thinking", "api_type"},
|
|
123
123
|
by_alias=True,
|
|
124
124
|
exclude_none=True,
|
|
125
|
+
exclude_unset=True,
|
|
125
126
|
))
|
|
126
127
|
|
|
127
128
|
yield _patch_llm_based_on_config(client, llm_config)
|
|
@@ -135,7 +136,12 @@ async def azure_openai_langchain(llm_config: AzureOpenAIModelConfig, _builder: B
|
|
|
135
136
|
validate_no_responses_api(llm_config, LLMFrameworkEnum.LANGCHAIN)
|
|
136
137
|
|
|
137
138
|
client = AzureChatOpenAI(
|
|
138
|
-
**llm_config.model_dump(exclude={"type", "thinking", "api_type"
|
|
139
|
+
**llm_config.model_dump(exclude={"type", "thinking", "api_type", "api_version"},
|
|
140
|
+
by_alias=True,
|
|
141
|
+
exclude_none=True,
|
|
142
|
+
exclude_unset=True),
|
|
143
|
+
api_version=llm_config.api_version,
|
|
144
|
+
)
|
|
139
145
|
|
|
140
146
|
yield _patch_llm_based_on_config(client, llm_config)
|
|
141
147
|
|
|
@@ -149,9 +155,12 @@ async def nim_langchain(llm_config: NIMModelConfig, _builder: Builder):
|
|
|
149
155
|
|
|
150
156
|
# prefer max_completion_tokens over max_tokens
|
|
151
157
|
client = ChatNVIDIA(
|
|
152
|
-
**llm_config.model_dump(
|
|
153
|
-
|
|
154
|
-
|
|
158
|
+
**llm_config.model_dump(
|
|
159
|
+
exclude={"type", "max_tokens", "thinking", "api_type"},
|
|
160
|
+
by_alias=True,
|
|
161
|
+
exclude_none=True,
|
|
162
|
+
exclude_unset=True,
|
|
163
|
+
),
|
|
155
164
|
max_completion_tokens=llm_config.max_tokens,
|
|
156
165
|
)
|
|
157
166
|
|
|
@@ -171,6 +180,7 @@ async def openai_langchain(llm_config: OpenAIModelConfig, _builder: Builder):
|
|
|
171
180
|
exclude={"type", "thinking", "api_type"},
|
|
172
181
|
by_alias=True,
|
|
173
182
|
exclude_none=True,
|
|
183
|
+
exclude_unset=True,
|
|
174
184
|
))
|
|
175
185
|
else:
|
|
176
186
|
# If stream_usage is specified, it will override the default value of True.
|
|
@@ -179,6 +189,7 @@ async def openai_langchain(llm_config: OpenAIModelConfig, _builder: Builder):
|
|
|
179
189
|
exclude={"type", "thinking", "api_type"},
|
|
180
190
|
by_alias=True,
|
|
181
191
|
exclude_none=True,
|
|
192
|
+
exclude_unset=True,
|
|
182
193
|
))
|
|
183
194
|
|
|
184
195
|
yield _patch_llm_based_on_config(client, llm_config)
|
|
@@ -191,7 +202,7 @@ async def litellm_langchain(llm_config: LiteLlmModelConfig, _builder: Builder):
|
|
|
191
202
|
|
|
192
203
|
validate_no_responses_api(llm_config, LLMFrameworkEnum.LANGCHAIN)
|
|
193
204
|
|
|
194
|
-
client = ChatLiteLLM(
|
|
195
|
-
|
|
205
|
+
client = ChatLiteLLM(**llm_config.model_dump(
|
|
206
|
+
exclude={"type", "thinking", "api_type"}, by_alias=True, exclude_none=True, exclude_unset=True))
|
|
196
207
|
|
|
197
208
|
yield _patch_llm_based_on_config(client, llm_config)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nvidia-nat-langchain
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.0a20251129
|
|
4
4
|
Summary: Subpackage for LangChain/LangGraph integration in NeMo Agent toolkit
|
|
5
5
|
Author: NVIDIA Corporation
|
|
6
6
|
Maintainer: NVIDIA Corporation
|
|
@@ -16,7 +16,7 @@ Requires-Python: <3.14,>=3.11
|
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE-3rd-party.txt
|
|
18
18
|
License-File: LICENSE.md
|
|
19
|
-
Requires-Dist: nvidia-nat==v1.4.
|
|
19
|
+
Requires-Dist: nvidia-nat==v1.4.0a20251129
|
|
20
20
|
Requires-Dist: langchain~=0.3.27
|
|
21
21
|
Requires-Dist: langchain-aws~=0.2.31
|
|
22
22
|
Requires-Dist: langchain-core~=0.3.75
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
nat/meta/pypi.md,sha256=T_KFtTXVxhFM8Y6K3OlNByA5sTXLQuqqUpHgNOCvZBU,1120
|
|
2
2
|
nat/plugins/langchain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
nat/plugins/langchain/embedder.py,sha256=
|
|
4
|
-
nat/plugins/langchain/llm.py,sha256=
|
|
3
|
+
nat/plugins/langchain/embedder.py,sha256=Ie-J4N4lvygW0zNKklKZVSYxYFcRW6p_QlRdcz0WxcE,3607
|
|
4
|
+
nat/plugins/langchain/llm.py,sha256=FaEPleu_aBCsQ-6tt3ofr1A2Oa_ta60tMb0yGGhiWSo,8561
|
|
5
5
|
nat/plugins/langchain/register.py,sha256=jgq6wSJoGQIZFJhS8RbUs25cLgNJjCkFu4M6qaWJS_4,906
|
|
6
6
|
nat/plugins/langchain/retriever.py,sha256=SWbXXOezEUuPACnmSSU497NAmEVEMj2SrFJGodkRg34,2644
|
|
7
7
|
nat/plugins/langchain/tool_wrapper.py,sha256=Zgb2_XB4bEhjPPeqS-ZH_OJT_pcQmteX7u03N_qCLfc,2121
|
|
@@ -10,10 +10,10 @@ nat/plugins/langchain/tools/code_generation_tool.py,sha256=f5pna0WMOx3QOS4WnaMFK
|
|
|
10
10
|
nat/plugins/langchain/tools/register.py,sha256=uemxqLxcNk1bGX4crV52oMphLTZWonStzkXwTZeG2Rw,889
|
|
11
11
|
nat/plugins/langchain/tools/tavily_internet_search.py,sha256=W5sdZ9hobPc3xbnWPSbtFBClIn14EM8xT0XUVF2HpWo,2928
|
|
12
12
|
nat/plugins/langchain/tools/wikipedia_search.py,sha256=431YwLsjoC_mdvMZ_gY0Q37Uqaue2ASnAHpwr4jWCaU,2197
|
|
13
|
-
nvidia_nat_langchain-1.4.
|
|
14
|
-
nvidia_nat_langchain-1.4.
|
|
15
|
-
nvidia_nat_langchain-1.4.
|
|
16
|
-
nvidia_nat_langchain-1.4.
|
|
17
|
-
nvidia_nat_langchain-1.4.
|
|
18
|
-
nvidia_nat_langchain-1.4.
|
|
19
|
-
nvidia_nat_langchain-1.4.
|
|
13
|
+
nvidia_nat_langchain-1.4.0a20251129.dist-info/licenses/LICENSE-3rd-party.txt,sha256=fOk5jMmCX9YoKWyYzTtfgl-SUy477audFC5hNY4oP7Q,284609
|
|
14
|
+
nvidia_nat_langchain-1.4.0a20251129.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
15
|
+
nvidia_nat_langchain-1.4.0a20251129.dist-info/METADATA,sha256=Xn_gNxlhmgfYGVSOKm3zrEfbrR20kJYpeUoMuzdu0ro,2263
|
|
16
|
+
nvidia_nat_langchain-1.4.0a20251129.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
nvidia_nat_langchain-1.4.0a20251129.dist-info/entry_points.txt,sha256=4deXsMn97I012HhDw0UjoqcZ8eEoZ7BnqaRx5QmzebY,123
|
|
18
|
+
nvidia_nat_langchain-1.4.0a20251129.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
|
|
19
|
+
nvidia_nat_langchain-1.4.0a20251129.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|