nvidia-nat-crewai 1.4.0a20251028__py3-none-any.whl → 1.4.0a20260106__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.
nat/meta/pypi.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <!--
2
- SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
3
  SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1
+ # SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
2
  # SPDX-License-Identifier: Apache-2.0
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
nat/plugins/crewai/llm.py CHANGED
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1
+ # SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
2
  # SPDX-License-Identifier: Apache-2.0
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -19,6 +19,7 @@ from typing import TypeVar
19
19
  from nat.builder.builder import Builder
20
20
  from nat.builder.framework_enum import LLMFrameworkEnum
21
21
  from nat.cli.register_workflow import register_llm_client
22
+ from nat.data_models.common import get_secret_value
22
23
  from nat.data_models.llm import LLMBaseConfig
23
24
  from nat.data_models.retry_mixin import RetryMixin
24
25
  from nat.data_models.thinking_mixin import ThinkingMixin
@@ -79,7 +80,8 @@ async def azure_openai_crewai(llm_config: AzureOpenAIModelConfig, _builder: Buil
79
80
 
80
81
  # https://docs.crewai.com/en/concepts/llms#azure
81
82
 
82
- api_key = llm_config.api_key or os.environ.get("AZURE_OPENAI_API_KEY") or os.environ.get("AZURE_API_KEY")
83
+ api_key = get_secret_value(llm_config.api_key) if llm_config.api_key else os.environ.get(
84
+ "AZURE_OPENAI_API_KEY") or os.environ.get("AZURE_API_KEY")
83
85
  if api_key is None:
84
86
  raise ValueError("Azure API key is not set")
85
87
  os.environ["AZURE_API_KEY"] = api_key
@@ -96,11 +98,13 @@ async def azure_openai_crewai(llm_config: AzureOpenAIModelConfig, _builder: Buil
96
98
 
97
99
  client = LLM(
98
100
  **llm_config.model_dump(
99
- exclude={"type", "api_key", "azure_endpoint", "azure_deployment", "thinking", "api_type"},
101
+ exclude={"type", "api_key", "azure_endpoint", "azure_deployment", "thinking", "api_type", "api_version"},
100
102
  by_alias=True,
101
103
  exclude_none=True,
104
+ exclude_unset=True,
102
105
  ),
103
106
  model=model,
107
+ api_version=llm_config.api_version,
104
108
  )
105
109
 
106
110
  yield _patch_llm_based_on_config(client, llm_config)
@@ -120,9 +124,12 @@ async def nim_crewai(llm_config: NIMModelConfig, _builder: Builder):
120
124
  os.environ["NVIDIA_NIM_API_KEY"] = nvidia_api_key
121
125
 
122
126
  client = LLM(
123
- **llm_config.model_dump(exclude={"type", "model_name", "thinking", "api_type"},
124
- by_alias=True,
125
- exclude_none=True),
127
+ **llm_config.model_dump(
128
+ exclude={"type", "model_name", "thinking", "api_type"},
129
+ by_alias=True,
130
+ exclude_none=True,
131
+ exclude_unset=True,
132
+ ),
126
133
  model=f"nvidia_nim/{llm_config.model_name}",
127
134
  )
128
135
 
@@ -136,7 +143,8 @@ async def openai_crewai(llm_config: OpenAIModelConfig, _builder: Builder):
136
143
 
137
144
  validate_no_responses_api(llm_config, LLMFrameworkEnum.CREWAI)
138
145
 
139
- client = LLM(**llm_config.model_dump(exclude={"type", "thinking", "api_type"}, by_alias=True, exclude_none=True))
146
+ client = LLM(**llm_config.model_dump(
147
+ exclude={"type", "thinking", "api_type"}, by_alias=True, exclude_none=True, exclude_unset=True))
140
148
 
141
149
  yield _patch_llm_based_on_config(client, llm_config)
142
150
 
@@ -148,6 +156,7 @@ async def litellm_crewai(llm_config: LiteLlmModelConfig, _builder: Builder):
148
156
 
149
157
  validate_no_responses_api(llm_config, LLMFrameworkEnum.CREWAI)
150
158
 
151
- client = LLM(**llm_config.model_dump(exclude={"type", "thinking", "api_type"}, by_alias=True, exclude_none=True))
159
+ client = LLM(**llm_config.model_dump(
160
+ exclude={"type", "thinking", "api_type"}, by_alias=True, exclude_none=True, exclude_unset=True))
152
161
 
153
162
  yield _patch_llm_based_on_config(client, llm_config)
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1
+ # SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
2
  # SPDX-License-Identifier: Apache-2.0
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1
+ # SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
2
  # SPDX-License-Identifier: Apache-2.0
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nvidia-nat-crewai
3
- Version: 1.4.0a20251028
3
+ Version: 1.4.0a20260106
4
4
  Summary: Subpackage for CrewAI integration in NeMo Agent toolkit
5
5
  Author: NVIDIA Corporation
6
6
  Maintainer: NVIDIA Corporation
@@ -16,12 +16,12 @@ 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[litellm]==v1.4.0a20251028
19
+ Requires-Dist: nvidia-nat[litellm]==v1.4.0a20260106
20
20
  Requires-Dist: crewai~=0.193.2
21
21
  Dynamic: license-file
22
22
 
23
23
  <!--
24
- SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
24
+ SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
25
25
  SPDX-License-Identifier: Apache-2.0
26
26
 
27
27
  Licensed under the Apache License, Version 2.0 (the "License");
@@ -0,0 +1,13 @@
1
+ nat/meta/pypi.md,sha256=E8b6rUQkbAn-bPf0AFWLJewrUW--4hLIhLVLypu7LrQ,1112
2
+ nat/plugins/crewai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ nat/plugins/crewai/crewai_callback_handler.py,sha256=8DZBb8xQURLmXFK19LcVmJ7CtIEZDLJz-I_sFxoGLf8,8587
4
+ nat/plugins/crewai/llm.py,sha256=AN2famk_jhUTl-Ia9tjdwHkklmXFP3VDHMvbzCE9Eq0,6607
5
+ nat/plugins/crewai/register.py,sha256=hXrc_E1Mc5IbhsG0te8iIw0wgK7z7tYpyQYnDl7MXts,836
6
+ nat/plugins/crewai/tool_wrapper.py,sha256=lpldbkjBOIOhyHRm9IkbyWD3PS5YdAA9kIFFubLgrLg,1574
7
+ nvidia_nat_crewai-1.4.0a20260106.dist-info/licenses/LICENSE-3rd-party.txt,sha256=fOk5jMmCX9YoKWyYzTtfgl-SUy477audFC5hNY4oP7Q,284609
8
+ nvidia_nat_crewai-1.4.0a20260106.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
9
+ nvidia_nat_crewai-1.4.0a20260106.dist-info/METADATA,sha256=4Iijt5aKUmn73q_m5555gSU-UFT_FRMF63qJj0xq8Fs,1927
10
+ nvidia_nat_crewai-1.4.0a20260106.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ nvidia_nat_crewai-1.4.0a20260106.dist-info/entry_points.txt,sha256=YF5PUdQGr_OUDXB4TykElHJTsKT8yKkuE0bMX5n_RXs,58
12
+ nvidia_nat_crewai-1.4.0a20260106.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
13
+ nvidia_nat_crewai-1.4.0a20260106.dist-info/RECORD,,
@@ -1,13 +0,0 @@
1
- nat/meta/pypi.md,sha256=T68FnThRzDGFf1LR8u-okM-r11-skSnKqSyI6HOktQY,1107
2
- nat/plugins/crewai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- nat/plugins/crewai/crewai_callback_handler.py,sha256=il537F5tD9pFL1P9Q38ReOZasD-GgcBrm8BX_w0-xdo,8582
4
- nat/plugins/crewai/llm.py,sha256=FqJZBYlOERcS2FoAZbrinNgY56TFfYPpE2Gq4txMc_M,6335
5
- nat/plugins/crewai/register.py,sha256=_R3bhGmz___696_NwyIcpw3koMBiWqIFoWEFJ0VAgXs,831
6
- nat/plugins/crewai/tool_wrapper.py,sha256=BNKEPQQCLKtXNzGDAKBLCdmGJXe9lBOVI1hObha8hoI,1569
7
- nvidia_nat_crewai-1.4.0a20251028.dist-info/licenses/LICENSE-3rd-party.txt,sha256=fOk5jMmCX9YoKWyYzTtfgl-SUy477audFC5hNY4oP7Q,284609
8
- nvidia_nat_crewai-1.4.0a20251028.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
9
- nvidia_nat_crewai-1.4.0a20251028.dist-info/METADATA,sha256=r2QBYVya936vg5FajpIqFmg72C1Ln8AHUSQMMQpCprY,1922
10
- nvidia_nat_crewai-1.4.0a20251028.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- nvidia_nat_crewai-1.4.0a20251028.dist-info/entry_points.txt,sha256=YF5PUdQGr_OUDXB4TykElHJTsKT8yKkuE0bMX5n_RXs,58
12
- nvidia_nat_crewai-1.4.0a20251028.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
13
- nvidia_nat_crewai-1.4.0a20251028.dist-info/RECORD,,