nvidia-nat-langchain 1.4.0a20251029__py3-none-any.whl → 1.4.0a20251031__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.

@@ -13,9 +13,13 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
+ from pydantic import Field
17
+
16
18
  from nat.builder.builder import Builder
17
19
  from nat.builder.function_info import FunctionInfo
18
20
  from nat.cli.register_workflow import register_function
21
+ from nat.data_models.common import SerializableSecretStr
22
+ from nat.data_models.common import get_secret_value
19
23
  from nat.data_models.function import FunctionBaseConfig
20
24
 
21
25
 
@@ -26,7 +30,7 @@ class TavilyInternetSearchToolConfig(FunctionBaseConfig, name="tavily_internet_s
26
30
  Requires a TAVILY_API_KEY.
27
31
  """
28
32
  max_results: int = 3
29
- api_key: str = ""
33
+ api_key: SerializableSecretStr = Field(default="", description="The API key for the Tavily service.")
30
34
 
31
35
 
32
36
  @register_function(config_type=TavilyInternetSearchToolConfig)
@@ -36,7 +40,8 @@ async def tavily_internet_search(tool_config: TavilyInternetSearchToolConfig, bu
36
40
  from langchain_tavily import TavilySearch
37
41
 
38
42
  if not os.environ.get("TAVILY_API_KEY"):
39
- os.environ["TAVILY_API_KEY"] = tool_config.api_key
43
+ if tool_config.api_key:
44
+ os.environ["TAVILY_API_KEY"] = get_secret_value(tool_config.api_key)
40
45
  # This tavily tool requires an API Key and it must be set as an environment variable (TAVILY_API_KEY)
41
46
  # Refer to create_customize_workflow.md for instructions of getting the API key
42
47
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nvidia-nat-langchain
3
- Version: 1.4.0a20251029
3
+ Version: 1.4.0a20251031
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.0a20251029
19
+ Requires-Dist: nvidia-nat==v1.4.0a20251031
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
@@ -8,12 +8,12 @@ nat/plugins/langchain/tool_wrapper.py,sha256=Zgb2_XB4bEhjPPeqS-ZH_OJT_pcQmteX7u0
8
8
  nat/plugins/langchain/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  nat/plugins/langchain/tools/code_generation_tool.py,sha256=f5pna0WMOx3QOS4WnaMFKD7tBZ1-tS0PfI0IMYobtTQ,2723
10
10
  nat/plugins/langchain/tools/register.py,sha256=uemxqLxcNk1bGX4crV52oMphLTZWonStzkXwTZeG2Rw,889
11
- nat/plugins/langchain/tools/tavily_internet_search.py,sha256=UFMP1xh_kC3fydMQBeV-oDZ-M7jnLcs5OkMSzgm7mng,2653
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.0a20251029.dist-info/licenses/LICENSE-3rd-party.txt,sha256=fOk5jMmCX9YoKWyYzTtfgl-SUy477audFC5hNY4oP7Q,284609
14
- nvidia_nat_langchain-1.4.0a20251029.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
15
- nvidia_nat_langchain-1.4.0a20251029.dist-info/METADATA,sha256=oF7Cd7VE2x8BGddcrxW6PxqzSqLBt7hXZpJgdqKw4ok,2263
16
- nvidia_nat_langchain-1.4.0a20251029.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- nvidia_nat_langchain-1.4.0a20251029.dist-info/entry_points.txt,sha256=4deXsMn97I012HhDw0UjoqcZ8eEoZ7BnqaRx5QmzebY,123
18
- nvidia_nat_langchain-1.4.0a20251029.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
19
- nvidia_nat_langchain-1.4.0a20251029.dist-info/RECORD,,
13
+ nvidia_nat_langchain-1.4.0a20251031.dist-info/licenses/LICENSE-3rd-party.txt,sha256=fOk5jMmCX9YoKWyYzTtfgl-SUy477audFC5hNY4oP7Q,284609
14
+ nvidia_nat_langchain-1.4.0a20251031.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
15
+ nvidia_nat_langchain-1.4.0a20251031.dist-info/METADATA,sha256=IMGSc_w655owDdGmTDmqkUsI_uhAVG9YBthllbyh45g,2263
16
+ nvidia_nat_langchain-1.4.0a20251031.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ nvidia_nat_langchain-1.4.0a20251031.dist-info/entry_points.txt,sha256=4deXsMn97I012HhDw0UjoqcZ8eEoZ7BnqaRx5QmzebY,123
18
+ nvidia_nat_langchain-1.4.0a20251031.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
19
+ nvidia_nat_langchain-1.4.0a20251031.dist-info/RECORD,,