nvidia-nat-langchain 1.4.0a20251106__py3-none-any.whl → 1.4.0a20251108__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 +6 -3
- nat/plugins/langchain/llm.py +13 -7
- {nvidia_nat_langchain-1.4.0a20251106.dist-info → nvidia_nat_langchain-1.4.0a20251108.dist-info}/METADATA +2 -2
- {nvidia_nat_langchain-1.4.0a20251106.dist-info → nvidia_nat_langchain-1.4.0a20251108.dist-info}/RECORD +9 -9
- {nvidia_nat_langchain-1.4.0a20251106.dist-info → nvidia_nat_langchain-1.4.0a20251108.dist-info}/WHEEL +0 -0
- {nvidia_nat_langchain-1.4.0a20251106.dist-info → nvidia_nat_langchain-1.4.0a20251108.dist-info}/entry_points.txt +0 -0
- {nvidia_nat_langchain-1.4.0a20251106.dist-info → nvidia_nat_langchain-1.4.0a20251108.dist-info}/licenses/LICENSE-3rd-party.txt +0 -0
- {nvidia_nat_langchain-1.4.0a20251106.dist-info → nvidia_nat_langchain-1.4.0a20251108.dist-info}/licenses/LICENSE.md +0 -0
- {nvidia_nat_langchain-1.4.0a20251106.dist-info → nvidia_nat_langchain-1.4.0a20251108.dist-info}/top_level.txt +0 -0
|
@@ -28,7 +28,8 @@ 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"}, by_alias=True, exclude_none=True, exclude_unset=True))
|
|
32
33
|
|
|
33
34
|
if isinstance(embedder_config, RetryMixin):
|
|
34
35
|
client = patch_with_retry(client,
|
|
@@ -44,7 +45,8 @@ async def nim_langchain(embedder_config: NIMEmbedderModelConfig, builder: Builde
|
|
|
44
45
|
|
|
45
46
|
from langchain_nvidia_ai_endpoints import NVIDIAEmbeddings
|
|
46
47
|
|
|
47
|
-
client = NVIDIAEmbeddings(
|
|
48
|
+
client = NVIDIAEmbeddings(
|
|
49
|
+
**embedder_config.model_dump(exclude={"type"}, by_alias=True, exclude_none=True, exclude_unset=True))
|
|
48
50
|
|
|
49
51
|
if isinstance(embedder_config, RetryMixin):
|
|
50
52
|
client = patch_with_retry(client,
|
|
@@ -60,7 +62,8 @@ async def openai_langchain(embedder_config: OpenAIEmbedderModelConfig, builder:
|
|
|
60
62
|
|
|
61
63
|
from langchain_openai import OpenAIEmbeddings
|
|
62
64
|
|
|
63
|
-
client = OpenAIEmbeddings(
|
|
65
|
+
client = OpenAIEmbeddings(
|
|
66
|
+
**embedder_config.model_dump(exclude={"type"}, by_alias=True, exclude_none=True, exclude_unset=True))
|
|
64
67
|
|
|
65
68
|
if isinstance(embedder_config, RetryMixin):
|
|
66
69
|
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)
|
|
@@ -134,8 +135,8 @@ async def azure_openai_langchain(llm_config: AzureOpenAIModelConfig, _builder: B
|
|
|
134
135
|
|
|
135
136
|
validate_no_responses_api(llm_config, LLMFrameworkEnum.LANGCHAIN)
|
|
136
137
|
|
|
137
|
-
client = AzureChatOpenAI(
|
|
138
|
-
|
|
138
|
+
client = AzureChatOpenAI(**llm_config.model_dump(
|
|
139
|
+
exclude={"type", "thinking", "api_type"}, by_alias=True, exclude_none=True, exclude_unset=True))
|
|
139
140
|
|
|
140
141
|
yield _patch_llm_based_on_config(client, llm_config)
|
|
141
142
|
|
|
@@ -149,9 +150,12 @@ async def nim_langchain(llm_config: NIMModelConfig, _builder: Builder):
|
|
|
149
150
|
|
|
150
151
|
# prefer max_completion_tokens over max_tokens
|
|
151
152
|
client = ChatNVIDIA(
|
|
152
|
-
**llm_config.model_dump(
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
**llm_config.model_dump(
|
|
154
|
+
exclude={"type", "max_tokens", "thinking", "api_type"},
|
|
155
|
+
by_alias=True,
|
|
156
|
+
exclude_none=True,
|
|
157
|
+
exclude_unset=True,
|
|
158
|
+
),
|
|
155
159
|
max_completion_tokens=llm_config.max_tokens,
|
|
156
160
|
)
|
|
157
161
|
|
|
@@ -171,6 +175,7 @@ async def openai_langchain(llm_config: OpenAIModelConfig, _builder: Builder):
|
|
|
171
175
|
exclude={"type", "thinking", "api_type"},
|
|
172
176
|
by_alias=True,
|
|
173
177
|
exclude_none=True,
|
|
178
|
+
exclude_unset=True,
|
|
174
179
|
))
|
|
175
180
|
else:
|
|
176
181
|
# If stream_usage is specified, it will override the default value of True.
|
|
@@ -179,6 +184,7 @@ async def openai_langchain(llm_config: OpenAIModelConfig, _builder: Builder):
|
|
|
179
184
|
exclude={"type", "thinking", "api_type"},
|
|
180
185
|
by_alias=True,
|
|
181
186
|
exclude_none=True,
|
|
187
|
+
exclude_unset=True,
|
|
182
188
|
))
|
|
183
189
|
|
|
184
190
|
yield _patch_llm_based_on_config(client, llm_config)
|
|
@@ -191,7 +197,7 @@ async def litellm_langchain(llm_config: LiteLlmModelConfig, _builder: Builder):
|
|
|
191
197
|
|
|
192
198
|
validate_no_responses_api(llm_config, LLMFrameworkEnum.LANGCHAIN)
|
|
193
199
|
|
|
194
|
-
client = ChatLiteLLM(
|
|
195
|
-
|
|
200
|
+
client = ChatLiteLLM(**llm_config.model_dump(
|
|
201
|
+
exclude={"type", "thinking", "api_type"}, by_alias=True, exclude_none=True, exclude_unset=True))
|
|
196
202
|
|
|
197
203
|
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.0a20251108
|
|
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.0a20251108
|
|
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=D1QnBdPehb4e6o8YTQtMP4C-mrCQ_-wkf6Kuv1ylRaE,3426
|
|
4
|
+
nat/plugins/langchain/llm.py,sha256=W-GsrWJVfNsaYMqmNNXnHyCZ4vjbQzMwmACzUZt_POY,8400
|
|
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.0a20251108.dist-info/licenses/LICENSE-3rd-party.txt,sha256=fOk5jMmCX9YoKWyYzTtfgl-SUy477audFC5hNY4oP7Q,284609
|
|
14
|
+
nvidia_nat_langchain-1.4.0a20251108.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
15
|
+
nvidia_nat_langchain-1.4.0a20251108.dist-info/METADATA,sha256=vmh_iO7SjO6LYnJjUNCvBA7yAqy_kROI7uE0J_QbDDw,2263
|
|
16
|
+
nvidia_nat_langchain-1.4.0a20251108.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
nvidia_nat_langchain-1.4.0a20251108.dist-info/entry_points.txt,sha256=4deXsMn97I012HhDw0UjoqcZ8eEoZ7BnqaRx5QmzebY,123
|
|
18
|
+
nvidia_nat_langchain-1.4.0a20251108.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
|
|
19
|
+
nvidia_nat_langchain-1.4.0a20251108.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|