nvidia-nat-adk 1.3.0rc4__py3-none-any.whl → 1.3.0rc5__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.
@@ -214,21 +214,23 @@ class ADKProfilerHandler(BaseProfilerCallback):
214
214
  model_name = first
215
215
  model_name = model_name or ""
216
216
 
217
- model_input = ""
217
+ model_input = []
218
218
  try:
219
219
  for message in kwargs.get("messages", []):
220
220
  content = message.get("content", "")
221
221
  if isinstance(content, list):
222
222
  for part in content:
223
223
  if isinstance(part, dict):
224
- model_input += str(part.get("text", "")) # text parts
224
+ model_input.append(str(part.get("text", ""))) # text parts
225
225
  else:
226
- model_input += str(part)
226
+ model_input.append(str(part))
227
227
  else:
228
- model_input += content or ""
228
+ model_input.append("" if content is None else str(content))
229
229
  except Exception as _e:
230
230
  logger.exception("Error getting model input")
231
231
 
232
+ model_input = "".join(model_input)
233
+
232
234
  # Record the start event
233
235
  input_stats = IntermediateStepPayload(
234
236
  event_type=IntermediateStepType.LLM_START,
@@ -252,14 +254,16 @@ class ADKProfilerHandler(BaseProfilerCallback):
252
254
  raise RuntimeError("Original LLM function is None - instrumentation may not have been set up correctly")
253
255
  output = await original_func(*args, **kwargs)
254
256
 
255
- model_output = ""
257
+ model_output = []
256
258
  try:
257
259
  for choice in output.choices:
258
260
  msg = choice.message
259
- model_output += msg.content or ""
261
+ model_output.append(msg.content or "")
260
262
  except Exception as _e:
261
263
  logger.exception("Error getting model output")
262
264
 
265
+ model_output = "".join(model_output)
266
+
263
267
  now = time.time()
264
268
  # Record the end event
265
269
  # Prepare safe metadata and usage
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nvidia-nat-adk
3
- Version: 1.3.0rc4
3
+ Version: 1.3.0rc5
4
4
  Summary: Subpackage for Google ADK 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-rc4
19
+ Requires-Dist: nvidia-nat[litellm]==v1.3.0-rc5
20
20
  Requires-Dist: google-adk~=1.14.1
21
21
  Dynamic: license-file
22
22
 
@@ -1,13 +1,13 @@
1
1
  nat/meta/pypi.md,sha256=AOSYTEk4JQQeaQQ1fA7v__j9-5rchBPvvSAICORgttE,953
2
2
  nat/plugins/adk/__init__.py,sha256=GUJrgGtpvyMUCjUBvR3faAdv-tZzbU9W-izgx9aMEQg,680
3
- nat/plugins/adk/adk_callback_handler.py,sha256=MMjMp6WN1zCVOFqoJWC90H0GGCHs49qMgoHfMHFitsU,12562
3
+ nat/plugins/adk/adk_callback_handler.py,sha256=JtyqakzOVGhnGQOZY7RRrWIO6rFNgsrC2j5Dv42HlkQ,12706
4
4
  nat/plugins/adk/llm.py,sha256=glwlO9UQhfGagVDNbtw-bNQ7FVdJfs31v6rqd-MBJLY,4120
5
5
  nat/plugins/adk/register.py,sha256=q6ZOmldtbr_7Gr8iUS8xrhR8_FhSubwGqr7VJNrZg1A,809
6
6
  nat/plugins/adk/tool_wrapper.py,sha256=TroOo7tM6I3gOqMxOL7fQmPsyVKlntPPRNbYQMk6JHs,5779
7
- nvidia_nat_adk-1.3.0rc4.dist-info/licenses/LICENSE-3rd-party.txt,sha256=fOk5jMmCX9YoKWyYzTtfgl-SUy477audFC5hNY4oP7Q,284609
8
- nvidia_nat_adk-1.3.0rc4.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
9
- nvidia_nat_adk-1.3.0rc4.dist-info/METADATA,sha256=Pc7kGOtjRWXiKaAwSD1Rh67Yxtf8wfqBJo-PyHGFCwk,1761
10
- nvidia_nat_adk-1.3.0rc4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- nvidia_nat_adk-1.3.0rc4.dist-info/entry_points.txt,sha256=K1K0clA1uqXk1Q0dh8ZaWNQyveaFx_XvgBWzCyGMYts,52
12
- nvidia_nat_adk-1.3.0rc4.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
13
- nvidia_nat_adk-1.3.0rc4.dist-info/RECORD,,
7
+ nvidia_nat_adk-1.3.0rc5.dist-info/licenses/LICENSE-3rd-party.txt,sha256=fOk5jMmCX9YoKWyYzTtfgl-SUy477audFC5hNY4oP7Q,284609
8
+ nvidia_nat_adk-1.3.0rc5.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
9
+ nvidia_nat_adk-1.3.0rc5.dist-info/METADATA,sha256=oF7-bWVnjJ3z54UoQgcyuh9FhpwlXXY8A7MVUFjbKdg,1761
10
+ nvidia_nat_adk-1.3.0rc5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ nvidia_nat_adk-1.3.0rc5.dist-info/entry_points.txt,sha256=K1K0clA1uqXk1Q0dh8ZaWNQyveaFx_XvgBWzCyGMYts,52
12
+ nvidia_nat_adk-1.3.0rc5.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
13
+ nvidia_nat_adk-1.3.0rc5.dist-info/RECORD,,