nvidia-nat-llama-index 1.3.0rc2__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.
@@ -44,6 +44,12 @@ def _patch_llm_based_on_config(client: ModelType, llm_config: LLMBaseConfig) ->
44
44
 
45
45
  @override
46
46
  def inject(self, messages: Sequence[ChatMessage], *args, **kwargs) -> FunctionArgumentWrapper:
47
+ # Attempt to inject the system prompt into the first system message
48
+ for message in messages:
49
+ if message.role == "system":
50
+ message.content = f"{self.system_prompt}\n\n{message.content}"
51
+ return FunctionArgumentWrapper(messages, *args, **kwargs)
52
+ # If no system message found, prepend a new one
47
53
  new_messages = [ChatMessage(role="system", content=self.system_prompt)] + list(messages)
48
54
  return FunctionArgumentWrapper(new_messages, *args, **kwargs)
49
55
 
@@ -1,7 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nvidia-nat-llama-index
3
- Version: 1.3.0rc2
3
+ Version: 1.3.0rc4
4
4
  Summary: Subpackage for Llama-Index integration in NeMo Agent toolkit
5
+ Author: NVIDIA Corporation
6
+ Maintainer: NVIDIA Corporation
7
+ License: Apache-2.0
8
+ Project-URL: documentation, https://docs.nvidia.com/nemo/agent-toolkit/latest/
9
+ Project-URL: source, https://github.com/NVIDIA/NeMo-Agent-Toolkit
5
10
  Keywords: ai,rag,agents
6
11
  Classifier: Programming Language :: Python
7
12
  Classifier: Programming Language :: Python :: 3.11
@@ -9,7 +14,9 @@ Classifier: Programming Language :: Python :: 3.12
9
14
  Classifier: Programming Language :: Python :: 3.13
10
15
  Requires-Python: <3.14,>=3.11
11
16
  Description-Content-Type: text/markdown
12
- Requires-Dist: nvidia-nat==v1.3.0-rc2
17
+ License-File: LICENSE-3rd-party.txt
18
+ License-File: LICENSE.md
19
+ Requires-Dist: nvidia-nat==v1.3.0-rc4
13
20
  Requires-Dist: llama-index-core~=0.12.21
14
21
  Requires-Dist: llama-index-embeddings-azure-openai~=0.3.9
15
22
  Requires-Dist: llama-index-embeddings-nvidia~=0.3.1
@@ -21,6 +28,7 @@ Requires-Dist: llama-index-llms-nvidia~=0.3.1
21
28
  Requires-Dist: llama-index-llms-openai~=0.3.42
22
29
  Requires-Dist: llama-index-readers-file~=0.4.4
23
30
  Requires-Dist: llama-index~=0.12.21
31
+ Dynamic: license-file
24
32
 
25
33
  <!--
26
34
  SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
@@ -0,0 +1,13 @@
1
+ nat/meta/pypi.md,sha256=s9C3pgWB0HLIXTx5QPryNOWN0O2fIRIap0p9_zCHlTs,1112
2
+ nat/plugins/llama_index/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ nat/plugins/llama_index/embedder.py,sha256=4c4uAa19UArqA_Npe5mwEnUhCaguTbyWcAntBzcPEeQ,3493
4
+ nat/plugins/llama_index/llm.py,sha256=zddtT5byVK_yC-UdFxc124Uzv7Irt_rcf53f1DcqOx0,5327
5
+ nat/plugins/llama_index/register.py,sha256=1x_b8u6cuQwh4Iz_7TcIFWXvLIL9IIKUPE-zR9d6ug8,859
6
+ nat/plugins/llama_index/tool_wrapper.py,sha256=VFKMIIeLdWqHwW2Ax11E2w-_9w3ow6Iuhra1Hk78RYM,1387
7
+ nvidia_nat_llama_index-1.3.0rc4.dist-info/licenses/LICENSE-3rd-party.txt,sha256=fOk5jMmCX9YoKWyYzTtfgl-SUy477audFC5hNY4oP7Q,284609
8
+ nvidia_nat_llama_index-1.3.0rc4.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
9
+ nvidia_nat_llama_index-1.3.0rc4.dist-info/METADATA,sha256=y7nD1i7rUO9KnuDc35a7o7oXUu0UJhkmDBe6m3FLbcs,2411
10
+ nvidia_nat_llama_index-1.3.0rc4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ nvidia_nat_llama_index-1.3.0rc4.dist-info/entry_points.txt,sha256=2LqRRju5448P2v8B3y6TSPnk-nOd5T3AmV5JibCnoQc,68
12
+ nvidia_nat_llama_index-1.3.0rc4.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
13
+ nvidia_nat_llama_index-1.3.0rc4.dist-info/RECORD,,