aiqtoolkit 1.2.0a20250610__py3-none-any.whl → 1.2.0a20250612__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.
Potentially problematic release.
This version of aiqtoolkit might be problematic. Click here for more details.
- aiq/builder/workflow_builder.py +13 -0
- aiq/llm/openai_llm.py +1 -1
- aiq/meta/pypi.md +3 -3
- aiq/observability/register.py +4 -5
- {aiqtoolkit-1.2.0a20250610.dist-info → aiqtoolkit-1.2.0a20250612.dist-info}/METADATA +4 -4
- {aiqtoolkit-1.2.0a20250610.dist-info → aiqtoolkit-1.2.0a20250612.dist-info}/RECORD +11 -11
- {aiqtoolkit-1.2.0a20250610.dist-info → aiqtoolkit-1.2.0a20250612.dist-info}/WHEEL +0 -0
- {aiqtoolkit-1.2.0a20250610.dist-info → aiqtoolkit-1.2.0a20250612.dist-info}/entry_points.txt +0 -0
- {aiqtoolkit-1.2.0a20250610.dist-info → aiqtoolkit-1.2.0a20250612.dist-info}/licenses/LICENSE-3rd-party.txt +0 -0
- {aiqtoolkit-1.2.0a20250610.dist-info → aiqtoolkit-1.2.0a20250612.dist-info}/licenses/LICENSE.md +0 -0
- {aiqtoolkit-1.2.0a20250610.dist-info → aiqtoolkit-1.2.0a20250612.dist-info}/top_level.txt +0 -0
aiq/builder/workflow_builder.py
CHANGED
|
@@ -167,11 +167,24 @@ class WorkflowBuilder(Builder, AbstractAsyncContextManager):
|
|
|
167
167
|
|
|
168
168
|
# pylint: disable=unused-variable,redefined-outer-name
|
|
169
169
|
opentelemetry = try_import_opentelemetry() # noqa: F841
|
|
170
|
+
from openinference.semconv.resource import ResourceAttributes
|
|
170
171
|
from opentelemetry import trace
|
|
172
|
+
from opentelemetry.sdk.resources import Resource
|
|
171
173
|
from opentelemetry.sdk.trace import TracerProvider
|
|
172
174
|
from opentelemetry.sdk.trace.export import BatchSpanProcessor
|
|
173
175
|
|
|
176
|
+
from aiq.observability.register import PhoenixTelemetryExporter
|
|
177
|
+
|
|
178
|
+
# Create a default provider first
|
|
174
179
|
provider = TracerProvider()
|
|
180
|
+
|
|
181
|
+
# Check if we have a phoenix telemetry exporter and use its project name
|
|
182
|
+
for key, trace_exporter_config in telemetry_config.tracing.items():
|
|
183
|
+
if isinstance(trace_exporter_config, PhoenixTelemetryExporter):
|
|
184
|
+
provider = TracerProvider(resource=Resource(
|
|
185
|
+
attributes={ResourceAttributes.PROJECT_NAME: trace_exporter_config.project}))
|
|
186
|
+
break
|
|
187
|
+
|
|
175
188
|
trace.set_tracer_provider(provider)
|
|
176
189
|
|
|
177
190
|
for key, trace_exporter_config in telemetry_config.tracing.items():
|
aiq/llm/openai_llm.py
CHANGED
|
@@ -26,7 +26,7 @@ from aiq.data_models.llm import LLMBaseConfig
|
|
|
26
26
|
class OpenAIModelConfig(LLMBaseConfig, name="openai"):
|
|
27
27
|
"""An OpenAI LLM provider to be used with an LLM client."""
|
|
28
28
|
|
|
29
|
-
model_config = ConfigDict(protected_namespaces=())
|
|
29
|
+
model_config = ConfigDict(protected_namespaces=(), extra="allow")
|
|
30
30
|
|
|
31
31
|
api_key: str | None = Field(default=None, description="OpenAI API key to interact with hosted model.")
|
|
32
32
|
base_url: str | None = Field(default=None, description="Base url to the hosted model.")
|
aiq/meta/pypi.md
CHANGED
|
@@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
|
|
|
15
15
|
limitations under the License.
|
|
16
16
|
-->
|
|
17
17
|
|
|
18
|
-

|
|
19
19
|
|
|
20
20
|
# NVIDIA Agent Intelligence Toolkit
|
|
21
21
|
|
|
@@ -38,11 +38,11 @@ With AIQ toolkit, you can move quickly, experiment freely, and ensure reliabilit
|
|
|
38
38
|
* [Documentation](https://docs.nvidia.com/aiqtoolkit/1.2.0/index.html): Explore the full documentation for AIQ toolkit.
|
|
39
39
|
|
|
40
40
|
## First time user?
|
|
41
|
-
If this is your first time using AIQ toolkit, it is recommended to install the latest version from the [source repository](https://github.com/NVIDIA/
|
|
41
|
+
If this is your first time using AIQ toolkit, it is recommended to install the latest version from the [source repository](https://github.com/NVIDIA/NeMo-Agent-Toolkit?tab=readme-ov-file#quick-start) on GitHub. This package is intended for users who are familiar with AIQ toolkit applications and need to add AIQ toolkit as a dependency to their project.
|
|
42
42
|
|
|
43
43
|
## Feedback
|
|
44
44
|
|
|
45
|
-
We would love to hear from you! Please file an issue on [GitHub](https://github.com/NVIDIA/
|
|
45
|
+
We would love to hear from you! Please file an issue on [GitHub](https://github.com/NVIDIA/NeMo-Agent-Toolkit/issues) if you have any feedback or feature requests.
|
|
46
46
|
|
|
47
47
|
## Acknowledgements
|
|
48
48
|
|
aiq/observability/register.py
CHANGED
|
@@ -24,7 +24,6 @@ from aiq.cli.register_workflow import register_telemetry_exporter
|
|
|
24
24
|
from aiq.data_models.logging import LoggingBaseConfig
|
|
25
25
|
from aiq.data_models.telemetry_exporter import TelemetryExporterBaseConfig
|
|
26
26
|
from aiq.utils.optional_imports import telemetry_optional_import
|
|
27
|
-
from aiq.utils.optional_imports import try_import_opentelemetry
|
|
28
27
|
from aiq.utils.optional_imports import try_import_phoenix
|
|
29
28
|
|
|
30
29
|
logger = logging.getLogger(__name__)
|
|
@@ -103,7 +102,7 @@ async def langsmith_telemetry_exporter(config: LangsmithTelemetryExporter, build
|
|
|
103
102
|
if not api_key:
|
|
104
103
|
raise ValueError("API key is required for langsmith")
|
|
105
104
|
|
|
106
|
-
headers = {"x-api-key": api_key, "
|
|
105
|
+
headers = {"x-api-key": api_key, "Langsmith-Project": config.project}
|
|
107
106
|
yield trace_exporter.OTLPSpanExporter(endpoint=config.endpoint, headers=headers)
|
|
108
107
|
|
|
109
108
|
|
|
@@ -117,9 +116,9 @@ class OtelCollectorTelemetryExporter(TelemetryExporterBaseConfig, name="otelcoll
|
|
|
117
116
|
@register_telemetry_exporter(config_type=OtelCollectorTelemetryExporter)
|
|
118
117
|
async def otel_telemetry_exporter(config: OtelCollectorTelemetryExporter, builder: Builder):
|
|
119
118
|
"""Create an OpenTelemetry telemetry exporter."""
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
yield
|
|
119
|
+
|
|
120
|
+
trace_exporter = telemetry_optional_import("opentelemetry.exporter.otlp.proto.http.trace_exporter")
|
|
121
|
+
yield trace_exporter.OTLPSpanExporter(endpoint=config.endpoint)
|
|
123
122
|
|
|
124
123
|
|
|
125
124
|
class ConsoleLoggingMethod(LoggingBaseConfig, name="console"):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aiqtoolkit
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.0a20250612
|
|
4
4
|
Summary: NVIDIA Agent Intelligence toolkit
|
|
5
5
|
Author: NVIDIA Corporation
|
|
6
6
|
Maintainer: NVIDIA Corporation
|
|
@@ -292,7 +292,7 @@ See the License for the specific language governing permissions and
|
|
|
292
292
|
limitations under the License.
|
|
293
293
|
-->
|
|
294
294
|
|
|
295
|
-

|
|
296
296
|
|
|
297
297
|
# NVIDIA Agent Intelligence Toolkit
|
|
298
298
|
|
|
@@ -315,11 +315,11 @@ With AIQ toolkit, you can move quickly, experiment freely, and ensure reliabilit
|
|
|
315
315
|
* [Documentation](https://docs.nvidia.com/aiqtoolkit/1.2.0/index.html): Explore the full documentation for AIQ toolkit.
|
|
316
316
|
|
|
317
317
|
## First time user?
|
|
318
|
-
If this is your first time using AIQ toolkit, it is recommended to install the latest version from the [source repository](https://github.com/NVIDIA/
|
|
318
|
+
If this is your first time using AIQ toolkit, it is recommended to install the latest version from the [source repository](https://github.com/NVIDIA/NeMo-Agent-Toolkit?tab=readme-ov-file#quick-start) on GitHub. This package is intended for users who are familiar with AIQ toolkit applications and need to add AIQ toolkit as a dependency to their project.
|
|
319
319
|
|
|
320
320
|
## Feedback
|
|
321
321
|
|
|
322
|
-
We would love to hear from you! Please file an issue on [GitHub](https://github.com/NVIDIA/
|
|
322
|
+
We would love to hear from you! Please file an issue on [GitHub](https://github.com/NVIDIA/NeMo-Agent-Toolkit/issues) if you have any feedback or feature requests.
|
|
323
323
|
|
|
324
324
|
## Acknowledgements
|
|
325
325
|
|
|
@@ -33,7 +33,7 @@ aiq/builder/llm.py,sha256=DcoYCyschsRjkW_yGsa_Ci7ELSpk5KRbi9778Dm_B9c,951
|
|
|
33
33
|
aiq/builder/retriever.py,sha256=GM7L1T4NdNZKerFZiCfLcQOwsGoX0NRlF8my7SMq3l4,970
|
|
34
34
|
aiq/builder/user_interaction_manager.py,sha256=OXr-RxWf1sEZjzQH_jt0nmqrLBtYLHGEZEcfDYYFV88,2913
|
|
35
35
|
aiq/builder/workflow.py,sha256=UOjrXmu1sxWTxTjygszqYgK0gK65r_beLKUwOpxtXuc,5894
|
|
36
|
-
aiq/builder/workflow_builder.py,sha256=
|
|
36
|
+
aiq/builder/workflow_builder.py,sha256=w5XBzACKp4yQu8aUYTiO1xVX78uyfDQnuquqgRT30Hc,30392
|
|
37
37
|
aiq/cli/__init__.py,sha256=Xs1JQ16L9btwreh4pdGKwskffAw1YFO48jKrU4ib_7c,685
|
|
38
38
|
aiq/cli/entrypoint.py,sha256=BJsCZgC2nVyAWj7tBXwW67OIteg833xAI54R-e9O8oc,4757
|
|
39
39
|
aiq/cli/main.py,sha256=yVTX5-5-21OOfG8qAdcK3M1fCQUxdr3G37Mb5OldPQc,1772
|
|
@@ -163,7 +163,7 @@ aiq/front_ends/simple_base/simple_front_end_plugin_base.py,sha256=HzcJFHZUZFnZJd
|
|
|
163
163
|
aiq/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
164
164
|
aiq/llm/aws_bedrock_llm.py,sha256=ZbYnT0vf36xCsnGAxDAQ3ugnV1SdcPXVKVxhhXsjdg0,2773
|
|
165
165
|
aiq/llm/nim_llm.py,sha256=l5dJk4MCzEbIKJnbGen9Zq7tpCEew4OXKeYqDodFXF0,2116
|
|
166
|
-
aiq/llm/openai_llm.py,sha256=
|
|
166
|
+
aiq/llm/openai_llm.py,sha256=3ShtQ0kB1hdBCPvjBWjo1jydue4l3oDIflrMc83SD9U,2167
|
|
167
167
|
aiq/llm/register.py,sha256=GMsFzhupP_rwSVkIoJUT8j0CRhWyC4X58ihnO_l9OkM,899
|
|
168
168
|
aiq/llm/utils/__init__.py,sha256=GUJrgGtpvyMUCjUBvR3faAdv-tZzbU9W-izgx9aMEQg,680
|
|
169
169
|
aiq/llm/utils/env_config_value.py,sha256=SBpppIRszDXNcEEG2L6kVojY7LH_EpHfK7bu92TGrE4,3568
|
|
@@ -172,10 +172,10 @@ aiq/memory/__init__.py,sha256=sNqiLatqyTNSBUKKgmInOvCmebkuDHRTErZaeOaE8C8,844
|
|
|
172
172
|
aiq/memory/interfaces.py,sha256=lyj1TGr3Fhibul8Y64Emj-BUEqDotmmFoVCEMqTujUA,5531
|
|
173
173
|
aiq/memory/models.py,sha256=c5dA7nKHQ4AS1_ptQZcfC_oXO495-ehocnf_qXTE6c8,4319
|
|
174
174
|
aiq/meta/module_to_distro.json,sha256=1XV7edobFrdDKvsSoynfodXg_hczUWpDrQzGkW9qqEs,28
|
|
175
|
-
aiq/meta/pypi.md,sha256=
|
|
175
|
+
aiq/meta/pypi.md,sha256=N1fvWaio3KhnAw9yigeM-oWaLuT5i_C7U_2UVzyPbks,4386
|
|
176
176
|
aiq/observability/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
177
177
|
aiq/observability/async_otel_listener.py,sha256=2Ye9bkHfAssuxFS_ECyRyl-bTa73yYvsPyO4BaK5Beg,19662
|
|
178
|
-
aiq/observability/register.py,sha256=
|
|
178
|
+
aiq/observability/register.py,sha256=CoYr6-rt7Go3fhJZHlQg52SfPqHqySaexBxlv4xtRwA,6619
|
|
179
179
|
aiq/plugins/.namespace,sha256=Gace0pOC3ETEJf-TBVuNw0TQV6J_KtOPpEiSzMH-odo,215
|
|
180
180
|
aiq/profiler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
181
181
|
aiq/profiler/data_frame_row.py,sha256=vudqk1ZzZtlZln2Ir43mPl3nwNc0pQlhwbtdY9oSKtI,1755
|
|
@@ -308,10 +308,10 @@ aiq/utils/reactive/base/observer_base.py,sha256=UAlyAY_ky4q2t0P81RVFo2Bs_R7z5Nde
|
|
|
308
308
|
aiq/utils/reactive/base/subject_base.py,sha256=Ed-AC6P7cT3qkW1EXjzbd5M9WpVoeN_9KCe3OM3FLU4,2521
|
|
309
309
|
aiq/utils/settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
310
310
|
aiq/utils/settings/global_settings.py,sha256=U9TCLdoZsKq5qOVGjREipGVv9e-FlStzqy5zv82_VYk,7454
|
|
311
|
-
aiqtoolkit-1.2.
|
|
312
|
-
aiqtoolkit-1.2.
|
|
313
|
-
aiqtoolkit-1.2.
|
|
314
|
-
aiqtoolkit-1.2.
|
|
315
|
-
aiqtoolkit-1.2.
|
|
316
|
-
aiqtoolkit-1.2.
|
|
317
|
-
aiqtoolkit-1.2.
|
|
311
|
+
aiqtoolkit-1.2.0a20250612.dist-info/licenses/LICENSE-3rd-party.txt,sha256=8o7aySJa9CBvFshPcsRdJbczzdNyDGJ8b0J67WRUQ2k,183936
|
|
312
|
+
aiqtoolkit-1.2.0a20250612.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
313
|
+
aiqtoolkit-1.2.0a20250612.dist-info/METADATA,sha256=1SStcP6v0If09VOfwJk8W0EHi7waeCGhJ8KVMW2Q5-o,20274
|
|
314
|
+
aiqtoolkit-1.2.0a20250612.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
315
|
+
aiqtoolkit-1.2.0a20250612.dist-info/entry_points.txt,sha256=gRlPfR5g21t328WNEQ4CcEz80S1sJNS8A7rMDYnzl4A,452
|
|
316
|
+
aiqtoolkit-1.2.0a20250612.dist-info/top_level.txt,sha256=fo7AzYcNhZ_tRWrhGumtxwnxMew4xrT1iwouDy_f0Kc,4
|
|
317
|
+
aiqtoolkit-1.2.0a20250612.dist-info/RECORD,,
|
|
File without changes
|
{aiqtoolkit-1.2.0a20250610.dist-info → aiqtoolkit-1.2.0a20250612.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
{aiqtoolkit-1.2.0a20250610.dist-info → aiqtoolkit-1.2.0a20250612.dist-info}/licenses/LICENSE.md
RENAMED
|
File without changes
|
|
File without changes
|