aiqtoolkit 1.1.0a20250505__py3-none-any.whl → 1.1.0a20250506__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.
- aiq/data_models/discovery_metadata.py +24 -7
- aiq/runtime/session.py +4 -0
- {aiqtoolkit-1.1.0a20250505.dist-info → aiqtoolkit-1.1.0a20250506.dist-info}/METADATA +3 -1
- {aiqtoolkit-1.1.0a20250505.dist-info → aiqtoolkit-1.1.0a20250506.dist-info}/RECORD +9 -9
- {aiqtoolkit-1.1.0a20250505.dist-info → aiqtoolkit-1.1.0a20250506.dist-info}/WHEEL +0 -0
- {aiqtoolkit-1.1.0a20250505.dist-info → aiqtoolkit-1.1.0a20250506.dist-info}/entry_points.txt +0 -0
- {aiqtoolkit-1.1.0a20250505.dist-info → aiqtoolkit-1.1.0a20250506.dist-info}/licenses/LICENSE-3rd-party.txt +0 -0
- {aiqtoolkit-1.1.0a20250505.dist-info → aiqtoolkit-1.1.0a20250506.dist-info}/licenses/LICENSE.md +0 -0
- {aiqtoolkit-1.1.0a20250505.dist-info → aiqtoolkit-1.1.0a20250506.dist-info}/top_level.txt +0 -0
|
@@ -150,7 +150,11 @@ class DiscoveryMetadata(BaseModel):
|
|
|
150
150
|
logger.error("Encountered issue getting distro_name for module %s", module.__name__)
|
|
151
151
|
return DiscoveryMetadata(status=DiscoveryStatusEnum.FAILURE)
|
|
152
152
|
|
|
153
|
-
|
|
153
|
+
try:
|
|
154
|
+
version = importlib.metadata.version(distro_name) if distro_name != "" else ""
|
|
155
|
+
except importlib.metadata.PackageNotFoundError:
|
|
156
|
+
logger.warning("Package metadata not found for %s", distro_name)
|
|
157
|
+
version = ""
|
|
154
158
|
except Exception as e:
|
|
155
159
|
logger.exception("Encountered issue extracting module metadata for %s: %s", config_type, e, exc_info=True)
|
|
156
160
|
return DiscoveryMetadata(status=DiscoveryStatusEnum.FAILURE)
|
|
@@ -185,7 +189,11 @@ class DiscoveryMetadata(BaseModel):
|
|
|
185
189
|
module = inspect.getmodule(fn)
|
|
186
190
|
root_package: str = module.__package__.split(".")[0]
|
|
187
191
|
root_package = DiscoveryMetadata.get_distribution_name(root_package)
|
|
188
|
-
|
|
192
|
+
try:
|
|
193
|
+
version = importlib.metadata.version(root_package) if root_package != "" else ""
|
|
194
|
+
except importlib.metadata.PackageNotFoundError:
|
|
195
|
+
logger.warning("Package metadata not found for %s", root_package)
|
|
196
|
+
version = ""
|
|
189
197
|
except Exception as e:
|
|
190
198
|
logger.exception("Encountered issue extracting module metadata for %s: %s", fn, e, exc_info=True)
|
|
191
199
|
return DiscoveryMetadata(status=DiscoveryStatusEnum.FAILURE)
|
|
@@ -213,10 +221,15 @@ class DiscoveryMetadata(BaseModel):
|
|
|
213
221
|
|
|
214
222
|
try:
|
|
215
223
|
package_name = DiscoveryMetadata.get_distribution_name(package_name)
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
package_version
|
|
224
|
+
try:
|
|
225
|
+
metadata = importlib.metadata.metadata(package_name)
|
|
226
|
+
description = metadata.get("Summary", "")
|
|
227
|
+
if (package_version is None):
|
|
228
|
+
package_version = importlib.metadata.version(package_name)
|
|
229
|
+
except importlib.metadata.PackageNotFoundError:
|
|
230
|
+
logger.warning("Package metadata not found for %s", package_name)
|
|
231
|
+
description = ""
|
|
232
|
+
package_version = package_version or ""
|
|
220
233
|
except Exception as e:
|
|
221
234
|
logger.exception("Encountered issue extracting module metadata for %s: %s", package_name, e, exc_info=True)
|
|
222
235
|
return DiscoveryMetadata(status=DiscoveryStatusEnum.FAILURE)
|
|
@@ -252,7 +265,11 @@ class DiscoveryMetadata(BaseModel):
|
|
|
252
265
|
module = inspect.getmodule(config_type)
|
|
253
266
|
root_package: str = module.__package__.split(".")[0]
|
|
254
267
|
root_package = DiscoveryMetadata.get_distribution_name(root_package)
|
|
255
|
-
|
|
268
|
+
try:
|
|
269
|
+
version = importlib.metadata.version(root_package) if root_package != "" else ""
|
|
270
|
+
except importlib.metadata.PackageNotFoundError:
|
|
271
|
+
logger.warning("Package metadata not found for %s", root_package)
|
|
272
|
+
version = ""
|
|
256
273
|
except Exception as e:
|
|
257
274
|
logger.exception("Encountered issue extracting module metadata for %s: %s", config_type, e, exc_info=True)
|
|
258
275
|
return DiscoveryMetadata(status=DiscoveryStatusEnum.FAILURE)
|
aiq/runtime/session.py
CHANGED
|
@@ -123,7 +123,11 @@ class AIQSessionManager:
|
|
|
123
123
|
def set_request_attributes(self, request: Request) -> None:
|
|
124
124
|
"""
|
|
125
125
|
Extracts and sets request attributes from an HTTP request.
|
|
126
|
+
If request is None, no attributes are set.
|
|
126
127
|
"""
|
|
128
|
+
if request is None:
|
|
129
|
+
return
|
|
130
|
+
|
|
127
131
|
self._context.metadata._request.method = request.method
|
|
128
132
|
self._context.metadata._request.url_path = request.url.path
|
|
129
133
|
self._context.metadata._request.url_port = request.url.port
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aiqtoolkit
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.0a20250506
|
|
4
4
|
Summary: Agent Intelligence Toolkit (AIQ Toolkit)
|
|
5
5
|
Author: NVIDIA Corporation
|
|
6
6
|
Maintainer: NVIDIA Corporation
|
|
@@ -254,6 +254,7 @@ Requires-Dist: aiqtoolkit-weave; extra == "weave"
|
|
|
254
254
|
Provides-Extra: zep-cloud
|
|
255
255
|
Requires-Dist: aiqtoolkit-zep-cloud; extra == "zep-cloud"
|
|
256
256
|
Provides-Extra: examples
|
|
257
|
+
Requires-Dist: aiq_alert_triage_agent; extra == "examples"
|
|
257
258
|
Requires-Dist: aiq_email_phishing_analyzer; extra == "examples"
|
|
258
259
|
Requires-Dist: aiq_multi_frameworks; extra == "examples"
|
|
259
260
|
Requires-Dist: aiq_plot_charts; extra == "examples"
|
|
@@ -263,6 +264,7 @@ Requires-Dist: aiq_simple; extra == "examples"
|
|
|
263
264
|
Requires-Dist: aiq_swe_bench; extra == "examples"
|
|
264
265
|
Requires-Dist: aiq_automated_description_generation; extra == "examples"
|
|
265
266
|
Requires-Dist: aiq_agno_personal_finance; extra == "examples"
|
|
267
|
+
Requires-Dist: aiq_profiler_agent; extra == "examples"
|
|
266
268
|
Provides-Extra: profiling
|
|
267
269
|
Requires-Dist: matplotlib~=3.9; extra == "profiling"
|
|
268
270
|
Requires-Dist: prefixspan~=0.5.2; extra == "profiling"
|
|
@@ -79,7 +79,7 @@ aiq/data_models/component.py,sha256=x6jm1Fhn1k1hGu-5AjM0ywuyvs6ztaZfapD8bLUXSqc,
|
|
|
79
79
|
aiq/data_models/component_ref.py,sha256=GyyIf4k80aUIn6LV9r84m5imbiVhpdaY7uKMMpYpbzU,3872
|
|
80
80
|
aiq/data_models/config.py,sha256=ERLjZY0iqexZ-gSXsCSN1UqgNeiwkEjWdYJEdKqeYTY,14116
|
|
81
81
|
aiq/data_models/dataset_handler.py,sha256=SifWhFHtxTMEjrXaXOYQgBOSKfWOzkc6OtOoPJ39pD4,3978
|
|
82
|
-
aiq/data_models/discovery_metadata.py,sha256=
|
|
82
|
+
aiq/data_models/discovery_metadata.py,sha256=OcITQc5VeML4bTHurrsMNiK_oB3z7wudMxcyN7LI8pY,12785
|
|
83
83
|
aiq/data_models/embedder.py,sha256=0v917IiohVA_7zdF7hoO_zQcmNe4hQEFhh4fxRiYBbk,940
|
|
84
84
|
aiq/data_models/evaluate.py,sha256=Llu9_H840nbV_nAimcFQaTeK6oLRmGac9UKsoaLlL58,3786
|
|
85
85
|
aiq/data_models/evaluator.py,sha256=bd2njsyQB2t6ClJ66gJiCjYHsQpWZwPD7rsU0J109TI,939
|
|
@@ -245,7 +245,7 @@ aiq/retriever/nemo_retriever/retriever.py,sha256=IvScUr9XuDLiMR__I3QsboLaM52N5D5
|
|
|
245
245
|
aiq/runtime/__init__.py,sha256=Xs1JQ16L9btwreh4pdGKwskffAw1YFO48jKrU4ib_7c,685
|
|
246
246
|
aiq/runtime/loader.py,sha256=jw_ZPM1vBJkyDtuXeyx42ACpu3EyXeimbo3Fb6k9-gM,6811
|
|
247
247
|
aiq/runtime/runner.py,sha256=WUAiliqI5Se9OgRmimpeFdrl38d9gRTJQ8uf59lvk7U,5836
|
|
248
|
-
aiq/runtime/session.py,sha256=
|
|
248
|
+
aiq/runtime/session.py,sha256=Hd92_MjYkPNdjbuoxQVV5EOJ0d_X2re449O6XHDlJZI,5039
|
|
249
249
|
aiq/runtime/user_metadata.py,sha256=d7K5CFdOvaXpP2NCUIFBY2lHxB1FnjqV4yOlT4C7fuU,3697
|
|
250
250
|
aiq/settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
251
251
|
aiq/settings/global_settings.py,sha256=Utm7GEiZTYTBZsxJt2TLp4bNWWMscU4b47MAEJehIrU,12036
|
|
@@ -305,10 +305,10 @@ aiq/utils/reactive/base/observer_base.py,sha256=UAlyAY_ky4q2t0P81RVFo2Bs_R7z5Nde
|
|
|
305
305
|
aiq/utils/reactive/base/subject_base.py,sha256=Ed-AC6P7cT3qkW1EXjzbd5M9WpVoeN_9KCe3OM3FLU4,2521
|
|
306
306
|
aiq/utils/settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
307
307
|
aiq/utils/settings/global_settings.py,sha256=U9TCLdoZsKq5qOVGjREipGVv9e-FlStzqy5zv82_VYk,7454
|
|
308
|
-
aiqtoolkit-1.1.
|
|
309
|
-
aiqtoolkit-1.1.
|
|
310
|
-
aiqtoolkit-1.1.
|
|
311
|
-
aiqtoolkit-1.1.
|
|
312
|
-
aiqtoolkit-1.1.
|
|
313
|
-
aiqtoolkit-1.1.
|
|
314
|
-
aiqtoolkit-1.1.
|
|
308
|
+
aiqtoolkit-1.1.0a20250506.dist-info/licenses/LICENSE-3rd-party.txt,sha256=8o7aySJa9CBvFshPcsRdJbczzdNyDGJ8b0J67WRUQ2k,183936
|
|
309
|
+
aiqtoolkit-1.1.0a20250506.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
310
|
+
aiqtoolkit-1.1.0a20250506.dist-info/METADATA,sha256=PO57xQ7Y7vYNv6TwQZX3Yn3d4YGs77NOaK3vsiNu7Rk,20138
|
|
311
|
+
aiqtoolkit-1.1.0a20250506.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
|
312
|
+
aiqtoolkit-1.1.0a20250506.dist-info/entry_points.txt,sha256=gRlPfR5g21t328WNEQ4CcEz80S1sJNS8A7rMDYnzl4A,452
|
|
313
|
+
aiqtoolkit-1.1.0a20250506.dist-info/top_level.txt,sha256=fo7AzYcNhZ_tRWrhGumtxwnxMew4xrT1iwouDy_f0Kc,4
|
|
314
|
+
aiqtoolkit-1.1.0a20250506.dist-info/RECORD,,
|
|
File without changes
|
{aiqtoolkit-1.1.0a20250505.dist-info → aiqtoolkit-1.1.0a20250506.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
{aiqtoolkit-1.1.0a20250505.dist-info → aiqtoolkit-1.1.0a20250506.dist-info}/licenses/LICENSE.md
RENAMED
|
File without changes
|
|
File without changes
|