nvidia-nat-crewai 1.3.0rc3__py3-none-any.whl → 1.3.0rc4__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
@@ -41,6 +41,12 @@ def _patch_llm_based_on_config(client: ModelType, llm_config: LLMBaseConfig) ->
41
41
 
42
42
  @override
43
43
  def inject(self, messages: list[dict[str, str]], *args, **kwargs) -> FunctionArgumentWrapper:
44
+ # Attempt to inject the system prompt into the first system message
45
+ for message in messages:
46
+ if message["role"] == "system":
47
+ message["content"] = f"{self.system_prompt}\n\n{message['content']}"
48
+ return FunctionArgumentWrapper(messages, *args, **kwargs)
49
+ # If no system message found, prepend a new one
44
50
  new_messages = [{"role": "system", "content": self.system_prompt}] + messages
45
51
  return FunctionArgumentWrapper(new_messages, *args, **kwargs)
46
52
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nvidia-nat-crewai
3
- Version: 1.3.0rc3
3
+ Version: 1.3.0rc4
4
4
  Summary: Subpackage for CrewAI 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[litellm]==v1.3.0-rc3
19
+ Requires-Dist: nvidia-nat[litellm]==v1.3.0-rc4
20
20
  Requires-Dist: crewai~=0.193.2
21
21
  Dynamic: license-file
22
22
 
@@ -1,13 +1,13 @@
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=m5u0RqUd94F0iIuUvknhVHn1SxYltg3lxAhN_3AogPQ,8334
4
- nat/plugins/crewai/llm.py,sha256=T57f7hZ5Aa4MUdc6PJLfU6TkF_dO87DWh2KvyAsCt7g,5493
4
+ nat/plugins/crewai/llm.py,sha256=_uzGGkXvDS6RU5JNmClGx_BgV4KBBz4YU-PgO2JHGak,5885
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.0rc3.dist-info/licenses/LICENSE-3rd-party.txt,sha256=fOk5jMmCX9YoKWyYzTtfgl-SUy477audFC5hNY4oP7Q,284609
8
- nvidia_nat_crewai-1.3.0rc3.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
9
- nvidia_nat_crewai-1.3.0rc3.dist-info/METADATA,sha256=EO1Rh-x5tiIWDmTl2TkcqLnipAMxTSwBsJiPqBumuEM,1911
10
- nvidia_nat_crewai-1.3.0rc3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- nvidia_nat_crewai-1.3.0rc3.dist-info/entry_points.txt,sha256=YF5PUdQGr_OUDXB4TykElHJTsKT8yKkuE0bMX5n_RXs,58
12
- nvidia_nat_crewai-1.3.0rc3.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
13
- nvidia_nat_crewai-1.3.0rc3.dist-info/RECORD,,
7
+ nvidia_nat_crewai-1.3.0rc4.dist-info/licenses/LICENSE-3rd-party.txt,sha256=fOk5jMmCX9YoKWyYzTtfgl-SUy477audFC5hNY4oP7Q,284609
8
+ nvidia_nat_crewai-1.3.0rc4.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
9
+ nvidia_nat_crewai-1.3.0rc4.dist-info/METADATA,sha256=SjQ2ze9NrGKdVnZnpBBYhBFNUZ4ZXCwxKlpWkN_M6dE,1911
10
+ nvidia_nat_crewai-1.3.0rc4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ nvidia_nat_crewai-1.3.0rc4.dist-info/entry_points.txt,sha256=YF5PUdQGr_OUDXB4TykElHJTsKT8yKkuE0bMX5n_RXs,58
12
+ nvidia_nat_crewai-1.3.0rc4.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
13
+ nvidia_nat_crewai-1.3.0rc4.dist-info/RECORD,,