nvidia-nat-crewai 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.
nat/plugins/crewai/llm.py CHANGED
@@ -43,6 +43,12 @@ def _patch_llm_based_on_config(client: ModelType, llm_config: LLMBaseConfig) ->
43
43
  new_messages = [{"role": "system", "content": self.system_prompt}] + messages
44
44
  return FunctionArgumentWrapper(new_messages, *args, **kwargs)
45
45
 
46
+ if isinstance(llm_config, RetryMixin):
47
+ client = patch_with_retry(client,
48
+ retries=llm_config.num_retries,
49
+ retry_codes=llm_config.retry_on_status_codes,
50
+ retry_on_messages=llm_config.retry_on_errors)
51
+
46
52
  if isinstance(llm_config, ThinkingMixin) and llm_config.thinking_system_prompt is not None:
47
53
  client = patch_with_thinking(
48
54
  client, CrewAIThinkingInjector(
@@ -50,12 +56,6 @@ def _patch_llm_based_on_config(client: ModelType, llm_config: LLMBaseConfig) ->
50
56
  function_names=["call"],
51
57
  ))
52
58
 
53
- if isinstance(llm_config, RetryMixin):
54
- client = patch_with_retry(client,
55
- retries=llm_config.num_retries,
56
- retry_codes=llm_config.retry_on_status_codes,
57
- retry_on_messages=llm_config.retry_on_errors)
58
-
59
59
  return client
60
60
 
61
61
 
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nvidia-nat-crewai
3
- Version: 1.3.0a20250901
3
+ Version: 1.3.0a20250904
4
4
  Summary: Subpackage for CrewAI 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: crewai~=0.95.0
11
11
 
12
12
  <!--
@@ -1,11 +1,11 @@
1
1
  nat/meta/pypi.md,sha256=T68FnThRzDGFf1LR8u-okM-r11-skSnKqSyI6HOktQY,1107
2
2
  nat/plugins/crewai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  nat/plugins/crewai/crewai_callback_handler.py,sha256=nBpWWpYQ-yrAG1-6G3kvcYrb0jJQzckd_ftojvGVWj4,8333
4
- nat/plugins/crewai/llm.py,sha256=DlkLN_fCXS7LUuNku4vvOUrMAgIA_om5LaQsKJOAAPk,5024
4
+ nat/plugins/crewai/llm.py,sha256=Snz67QawrXGd7SmeG7jC9CKeZ19fAiAmjuht9kIXfQc,5024
5
5
  nat/plugins/crewai/register.py,sha256=_R3bhGmz___696_NwyIcpw3koMBiWqIFoWEFJ0VAgXs,831
6
6
  nat/plugins/crewai/tool_wrapper.py,sha256=BNKEPQQCLKtXNzGDAKBLCdmGJXe9lBOVI1hObha8hoI,1569
7
- nvidia_nat_crewai-1.3.0a20250901.dist-info/METADATA,sha256=LpfSkWqkcYsUKbaVCcNJFEHFlHquPE-_iXAI5tE5QJE,1453
8
- nvidia_nat_crewai-1.3.0a20250901.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- nvidia_nat_crewai-1.3.0a20250901.dist-info/entry_points.txt,sha256=YF5PUdQGr_OUDXB4TykElHJTsKT8yKkuE0bMX5n_RXs,58
10
- nvidia_nat_crewai-1.3.0a20250901.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
11
- nvidia_nat_crewai-1.3.0a20250901.dist-info/RECORD,,
7
+ nvidia_nat_crewai-1.3.0a20250904.dist-info/METADATA,sha256=DaNQo79xGwj9J_55N-S-pZJByIjaNLgx237pKGxu88A,1453
8
+ nvidia_nat_crewai-1.3.0a20250904.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ nvidia_nat_crewai-1.3.0a20250904.dist-info/entry_points.txt,sha256=YF5PUdQGr_OUDXB4TykElHJTsKT8yKkuE0bMX5n_RXs,58
10
+ nvidia_nat_crewai-1.3.0a20250904.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
11
+ nvidia_nat_crewai-1.3.0a20250904.dist-info/RECORD,,