nvidia-nat-langchain 1.3.0a20250901__py3-none-any.whl → 1.3.0a20250904__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.
@@ -78,10 +78,13 @@ def _patch_llm_based_on_config(client: ModelType, llm_config: LLMBaseConfig) ->
78
78
  if all(isinstance(m, BaseMessage) for m in messages):
79
79
  new_messages = [system_message, *list(messages)]
80
80
  return FunctionArgumentWrapper(new_messages, *args, **kwargs)
81
- raise ValueError(
82
- "Unsupported sequence element types for LanguageModelInput; expected Sequence[BaseMessage].")
83
- else:
84
- return FunctionArgumentWrapper(messages, *args, **kwargs)
81
+ raise ValueError(f"Unsupported message type: {type(messages)}")
82
+
83
+ if isinstance(llm_config, RetryMixin):
84
+ client = patch_with_retry(client,
85
+ retries=llm_config.num_retries,
86
+ retry_codes=llm_config.retry_on_status_codes,
87
+ retry_on_messages=llm_config.retry_on_errors)
85
88
 
86
89
  if isinstance(llm_config, ThinkingMixin) and llm_config.thinking_system_prompt is not None:
87
90
  client = patch_with_thinking(
@@ -96,12 +99,6 @@ def _patch_llm_based_on_config(client: ModelType, llm_config: LLMBaseConfig) ->
96
99
  ],
97
100
  ))
98
101
 
99
- if isinstance(llm_config, RetryMixin):
100
- client = patch_with_retry(client,
101
- retries=llm_config.num_retries,
102
- retry_codes=llm_config.retry_on_status_codes,
103
- retry_on_messages=llm_config.retry_on_errors)
104
-
105
102
  return client
106
103
 
107
104
 
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nvidia-nat-langchain
3
- Version: 1.3.0a20250901
3
+ Version: 1.3.0a20250904
4
4
  Summary: Subpackage for LangChain and LangGraph integration in NeMo Agent toolkit
5
5
  Keywords: ai,rag,agents
6
6
  Classifier: Programming Language :: Python
7
7
  Requires-Python: <3.13,>=3.11
8
8
  Description-Content-Type: text/markdown
9
- Requires-Dist: nvidia-nat==v1.3.0a20250901
9
+ Requires-Dist: nvidia-nat==v1.3.0a20250904
10
10
  Requires-Dist: langchain-aws~=0.2.1
11
11
  Requires-Dist: langchain-core~=0.3.7
12
12
  Requires-Dist: langchain-nvidia-ai-endpoints~=0.3.5
@@ -1,7 +1,7 @@
1
1
  nat/meta/pypi.md,sha256=-RewrXPwhrT6398iluvXb5lefn18PybmvRFhmZF7KVI,1124
2
2
  nat/plugins/langchain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  nat/plugins/langchain/embedder.py,sha256=7bHXRcLwCeqG6ZQZQ35UAb46k5bN3UUL02OtG7RdL4Y,3282
4
- nat/plugins/langchain/llm.py,sha256=VbBq5wuTz8VjQjiUVE-bBfsQr2Zkx5wwNiTbvi-Ngaw,6537
4
+ nat/plugins/langchain/llm.py,sha256=YqsfDWhmv_liJ9K-ix6twsRMVE6gxzyE088DOCjDWcE,6373
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,8 +10,8 @@ nat/plugins/langchain/tools/code_generation_tool.py,sha256=qL3HBiOQzVPLw4EiUOWes
10
10
  nat/plugins/langchain/tools/register.py,sha256=uemxqLxcNk1bGX4crV52oMphLTZWonStzkXwTZeG2Rw,889
11
11
  nat/plugins/langchain/tools/tavily_internet_search.py,sha256=AnnLRY1xSU4DOzxbB8nFZRjHngXpqatPVOJ7yWV7jVw,2612
12
12
  nat/plugins/langchain/tools/wikipedia_search.py,sha256=431YwLsjoC_mdvMZ_gY0Q37Uqaue2ASnAHpwr4jWCaU,2197
13
- nvidia_nat_langchain-1.3.0a20250901.dist-info/METADATA,sha256=p71SB8wr_RPNmXaNKV2F9xlrYTLXAner7eBAVPVNi14,1735
14
- nvidia_nat_langchain-1.3.0a20250901.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- nvidia_nat_langchain-1.3.0a20250901.dist-info/entry_points.txt,sha256=4deXsMn97I012HhDw0UjoqcZ8eEoZ7BnqaRx5QmzebY,123
16
- nvidia_nat_langchain-1.3.0a20250901.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
17
- nvidia_nat_langchain-1.3.0a20250901.dist-info/RECORD,,
13
+ nvidia_nat_langchain-1.3.0a20250904.dist-info/METADATA,sha256=_A2l291pvwOrJdAgHwxJmvEh7Q6N1FNDAVIOx53TlBs,1735
14
+ nvidia_nat_langchain-1.3.0a20250904.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ nvidia_nat_langchain-1.3.0a20250904.dist-info/entry_points.txt,sha256=4deXsMn97I012HhDw0UjoqcZ8eEoZ7BnqaRx5QmzebY,123
16
+ nvidia_nat_langchain-1.3.0a20250904.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
17
+ nvidia_nat_langchain-1.3.0a20250904.dist-info/RECORD,,