nvidia-nat-data-flywheel 1.3.0a20251005__py3-none-any.whl → 1.3.0a20251007__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.
@@ -43,11 +43,11 @@ class DFWElasticsearchExporter(ElasticsearchMixin, DFWExporter):
43
43
  max_queue_size: The maximum queue size for exporting spans.
44
44
  drop_on_overflow: Whether to drop spans on overflow.
45
45
  shutdown_timeout: The shutdown timeout in seconds.
46
- **elasticsearch_kwargs: Additional arguments for ElasticsearchMixin:
47
- - endpoint: The elasticsearch endpoint.
48
- - index: The elasticsearch index name.
49
- - elasticsearch_auth: The elasticsearch authentication credentials.
50
- - headers: The elasticsearch headers.
46
+ elasticsearch_kwargs: Additional arguments for ElasticsearchMixin:
47
+ - endpoint: The elasticsearch endpoint.
48
+ - index: The elasticsearch index name.
49
+ - elasticsearch_auth: The elasticsearch authentication credentials.
50
+ - headers: The elasticsearch headers.
51
51
  """
52
52
  # Initialize both mixins - ElasticsearchMixin expects elasticsearch_kwargs,
53
53
  # DFWExporter expects the standard exporter parameters
@@ -16,7 +16,7 @@
16
16
  from .span_extractor import extract_timestamp
17
17
  from .span_extractor import extract_token_usage
18
18
  from .span_extractor import extract_usage_info
19
- from .span_to_dfw_record import span_to_dfw_record
19
+ from .span_to_dfw import span_to_dfw_record
20
20
  from .trace_adapter_registry import TraceAdapterRegistry
21
21
  from .trace_adapter_registry import register_adapter
22
22
 
@@ -24,12 +24,12 @@ from nat.plugins.data_flywheel.observability.schema.provider.openai_message impo
24
24
  from nat.plugins.data_flywheel.observability.schema.provider.openai_trace_source import OpenAITraceSource
25
25
  from nat.plugins.data_flywheel.observability.schema.sink.elasticsearch.dfw_es_record import AssistantMessage
26
26
  from nat.plugins.data_flywheel.observability.schema.sink.elasticsearch.dfw_es_record import DFWESRecord
27
+ from nat.plugins.data_flywheel.observability.schema.sink.elasticsearch.dfw_es_record import ESRequest
27
28
  from nat.plugins.data_flywheel.observability.schema.sink.elasticsearch.dfw_es_record import FinishReason
28
29
  from nat.plugins.data_flywheel.observability.schema.sink.elasticsearch.dfw_es_record import Function
29
30
  from nat.plugins.data_flywheel.observability.schema.sink.elasticsearch.dfw_es_record import FunctionDetails
30
31
  from nat.plugins.data_flywheel.observability.schema.sink.elasticsearch.dfw_es_record import FunctionMessage
31
32
  from nat.plugins.data_flywheel.observability.schema.sink.elasticsearch.dfw_es_record import Message
32
- from nat.plugins.data_flywheel.observability.schema.sink.elasticsearch.dfw_es_record import Request
33
33
  from nat.plugins.data_flywheel.observability.schema.sink.elasticsearch.dfw_es_record import RequestTool
34
34
  from nat.plugins.data_flywheel.observability.schema.sink.elasticsearch.dfw_es_record import Response
35
35
  from nat.plugins.data_flywheel.observability.schema.sink.elasticsearch.dfw_es_record import ResponseChoice
@@ -77,7 +77,7 @@ def create_message_by_role(role: str, content: str | None, **kwargs) -> Message:
77
77
  Args:
78
78
  role (str): The message role
79
79
  content (str): The message content
80
- **kwargs: Additional role-specific parameters
80
+ kwargs: Additional role-specific parameters
81
81
 
82
82
  Returns:
83
83
  Message: The appropriate message type for the role
@@ -314,11 +314,11 @@ def convert_langchain_openai(trace_source: TraceContainer) -> DFWESRecord:
314
314
  temperature = None
315
315
  max_tokens = None
316
316
 
317
- request = Request(messages=messages,
318
- model=model_name,
319
- tools=request_tools if request_tools else None,
320
- temperature=temperature,
321
- max_tokens=max_tokens)
317
+ request = ESRequest(messages=messages,
318
+ model=model_name,
319
+ tools=request_tools if request_tools else None,
320
+ temperature=temperature,
321
+ max_tokens=max_tokens)
322
322
 
323
323
  # Transform chat responses
324
324
  response_choices = []
@@ -27,7 +27,8 @@ from pydantic import field_validator
27
27
  from pydantic import model_validator
28
28
 
29
29
  from nat.plugins.data_flywheel.observability.schema.schema_registry import register_schema
30
- from nat.plugins.data_flywheel.observability.schema.sink.elasticsearch.contract_version import ContractVersion
30
+
31
+ from .contract_version import ContractVersion
31
32
 
32
33
  logger = logging.getLogger(__name__)
33
34
 
@@ -135,7 +136,7 @@ class RequestTool(BaseModel):
135
136
  function: FunctionDetails = Field(..., description="The function details.")
136
137
 
137
138
 
138
- class Request(BaseModel):
139
+ class ESRequest(BaseModel):
139
140
  """Request structure used in requests."""
140
141
 
141
142
  model_config = ConfigDict(extra="allow") # Allow extra fields
@@ -199,7 +200,7 @@ class DFWESRecord(BaseModel):
199
200
  description="Contract version for compatibility tracking")
200
201
 
201
202
  # Core fields (backward compatible)
202
- request: Request = Field(..., description="The OpenAI ChatCompletion request.")
203
+ request: ESRequest = Field(..., description="The OpenAI ChatCompletion request.")
203
204
  response: Response = Field(..., description="The OpenAI ChatCompletion response.")
204
205
  client_id: str = Field(..., description="Identifier of the application or deployment that generated traffic.")
205
206
  workload_id: str = Field(..., description="Stable identifier for the logical task / route / agent node.")
@@ -0,0 +1,14 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nvidia-nat-data-flywheel
3
- Version: 1.3.0a20251005
3
+ Version: 1.3.0a20251007
4
4
  Summary: Subpackage for NVIDIA Data Flywheel Blueprint integration in NeMo Agent Toolkit
5
5
  Keywords: ai,observability,nemo,data flywheel
6
6
  Classifier: Programming Language :: Python
@@ -10,7 +10,7 @@ Classifier: Programming Language :: Python :: 3.13
10
10
  Requires-Python: <3.14,>=3.11
11
11
  Description-Content-Type: text/markdown
12
12
  Requires-Dist: elasticsearch~=8.1
13
- Requires-Dist: nvidia-nat==v1.3.0a20251005
13
+ Requires-Dist: nvidia-nat==v1.3.0a20251007
14
14
 
15
15
  <!--
16
16
  SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
@@ -2,21 +2,21 @@ nat/meta/pypi.md,sha256=kqTY91XBsWVIQNt63BVOjEj02f8YYNG0WVoFn7HfWsc,1137
2
2
  nat/plugins/data_flywheel/observability/__init__.py,sha256=Xs1JQ16L9btwreh4pdGKwskffAw1YFO48jKrU4ib_7c,685
3
3
  nat/plugins/data_flywheel/observability/register.py,sha256=2D1UvjTtz3fwhqadXbV-flz4EsBBrTHpr8vCPMgQTiI,3310
4
4
  nat/plugins/data_flywheel/observability/exporter/__init__.py,sha256=GUJrgGtpvyMUCjUBvR3faAdv-tZzbU9W-izgx9aMEQg,680
5
- nat/plugins/data_flywheel/observability/exporter/dfw_elasticsearch_exporter.py,sha256=CREldRXPJAs4LVFipHPQks8qXX5V--cwVAyACRHNrCM,3722
5
+ nat/plugins/data_flywheel/observability/exporter/dfw_elasticsearch_exporter.py,sha256=Ou9rZYhPmGUi-F3ECH5eIAPhpSUvbYpUS20Uictg-sk,3704
6
6
  nat/plugins/data_flywheel/observability/exporter/dfw_exporter.py,sha256=ZCxvB0HgSpnKN8lwYe6AfoPbMe7Un9T9C2FaVRFuGAQ,4336
7
7
  nat/plugins/data_flywheel/observability/mixin/__init__.py,sha256=GUJrgGtpvyMUCjUBvR3faAdv-tZzbU9W-izgx9aMEQg,680
8
8
  nat/plugins/data_flywheel/observability/mixin/elasticsearch_mixin.py,sha256=Taf4OypW6goBLHQ7TTzVqBCpYJdSFt9jQHQOygXO9dQ,3058
9
9
  nat/plugins/data_flywheel/observability/processor/__init__.py,sha256=Lj0nT8rGFxd3ITrrW5ZMRYsVwkwtTWzmJYGRsW-r_VA,1072
10
10
  nat/plugins/data_flywheel/observability/processor/dfw_record_processor.py,sha256=qGegvaxyOkSiFji-rCtPBlnLySO7jfB3t3DeSA5b19s,3265
11
- nat/plugins/data_flywheel/observability/processor/trace_conversion/__init__.py,sha256=1ZME9GRzJCti2ExzNHRqYK9fhhnRAkrep7Db4AH-Sbg,1159
11
+ nat/plugins/data_flywheel/observability/processor/trace_conversion/__init__.py,sha256=FSSR9Yx_hXXtWoHIzRdT5YLgWNX16Tbkywx5MO5ojEo,1152
12
12
  nat/plugins/data_flywheel/observability/processor/trace_conversion/span_extractor.py,sha256=nX2uKR0DUMaxC5jpeZc741cJR1PiakQPMGDrrwPbjJY,2750
13
- nat/plugins/data_flywheel/observability/processor/trace_conversion/span_to_dfw_record.py,sha256=bqS4BJ0iJ-v_Mh-jnSOHq_Dh4eKyMmnpDS0T4kv8rlQ,4929
13
+ nat/plugins/data_flywheel/observability/processor/trace_conversion/span_to_dfw.py,sha256=bqS4BJ0iJ-v_Mh-jnSOHq_Dh4eKyMmnpDS0T4kv8rlQ,4929
14
14
  nat/plugins/data_flywheel/observability/processor/trace_conversion/trace_adapter_registry.py,sha256=qrNdSuYjqbTTtbu7mN3cPfBs7r5sn_MpBUPw2RWbabM,9911
15
15
  nat/plugins/data_flywheel/observability/processor/trace_conversion/adapter/__init__.py,sha256=Xs1JQ16L9btwreh4pdGKwskffAw1YFO48jKrU4ib_7c,685
16
16
  nat/plugins/data_flywheel/observability/processor/trace_conversion/adapter/register.py,sha256=Xm05kMVRJ8h65QCKTh3UsmIZ8dOMZhKHBDjklGZ9m_E,1061
17
17
  nat/plugins/data_flywheel/observability/processor/trace_conversion/adapter/elasticsearch/__init__.py,sha256=GUJrgGtpvyMUCjUBvR3faAdv-tZzbU9W-izgx9aMEQg,680
18
18
  nat/plugins/data_flywheel/observability/processor/trace_conversion/adapter/elasticsearch/nim_converter.py,sha256=XXbWePbVrpVywlr79VE9Hk6sWTG_zQI8AV7ykg6CTD4,1763
19
- nat/plugins/data_flywheel/observability/processor/trace_conversion/adapter/elasticsearch/openai_converter.py,sha256=pV1XIJiy6vSRJoiADU3RFmF0u_2Kh74oUNSz7jIq3V4,14767
19
+ nat/plugins/data_flywheel/observability/processor/trace_conversion/adapter/elasticsearch/openai_converter.py,sha256=gfCfUKWjDlEgwf1m_tb5RRG0_AnMRV9BzAIC3I1aX00,14777
20
20
  nat/plugins/data_flywheel/observability/schema/__init__.py,sha256=Xs1JQ16L9btwreh4pdGKwskffAw1YFO48jKrU4ib_7c,685
21
21
  nat/plugins/data_flywheel/observability/schema/register.py,sha256=P7WfvItuvYn22rYSPrZgydZPe-a9JkfUN7UUyiqsMRo,929
22
22
  nat/plugins/data_flywheel/observability/schema/schema_registry.py,sha256=tYwkFDhCJauNWlNATd2YpVgydp6HWXZCAZyN0f6ECbg,4971
@@ -29,10 +29,11 @@ nat/plugins/data_flywheel/observability/schema/provider/openai_trace_source.py,s
29
29
  nat/plugins/data_flywheel/observability/schema/sink/__init__.py,sha256=Xs1JQ16L9btwreh4pdGKwskffAw1YFO48jKrU4ib_7c,685
30
30
  nat/plugins/data_flywheel/observability/schema/sink/elasticsearch/__init__.py,sha256=zij8aeeVtQqZODJwrJ9xg-CY61yythnUMeJzbUJfjO8,899
31
31
  nat/plugins/data_flywheel/observability/schema/sink/elasticsearch/contract_version.py,sha256=eAxkIZG2uYl0e8QNzcLiDhqzYbaibx0XBV6jsfNm5UM,1153
32
- nat/plugins/data_flywheel/observability/schema/sink/elasticsearch/dfw_es_record.py,sha256=104nkmI2ZbiiP_qrdVUZkn4i4N_OBYCyUM-q-a4Orjc,9176
32
+ nat/plugins/data_flywheel/observability/schema/sink/elasticsearch/dfw_es_record.py,sha256=4SwDwf5Ng2DvTMjDBvxL36_Rp00gceTI2IRS2HQV6eM,9116
33
+ nat/plugins/data_flywheel/observability/utils/__init__.py,sha256=GUJrgGtpvyMUCjUBvR3faAdv-tZzbU9W-izgx9aMEQg,680
33
34
  nat/plugins/data_flywheel/observability/utils/deserialize.py,sha256=3dMPFQzcReX9gL1Di2iyP1czqiFQzOI7glIn9i8m3Jo,1568
34
- nvidia_nat_data_flywheel-1.3.0a20251005.dist-info/METADATA,sha256=142rjWlF35MjS_gx6aGX_uOFvGgzS3bVIbI0tZHIOmA,1693
35
- nvidia_nat_data_flywheel-1.3.0a20251005.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
36
- nvidia_nat_data_flywheel-1.3.0a20251005.dist-info/entry_points.txt,sha256=ElemL8x3DrrcLB-NsVsrUWKbHMD6rapsvs8qoIGVWrY,295
37
- nvidia_nat_data_flywheel-1.3.0a20251005.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
38
- nvidia_nat_data_flywheel-1.3.0a20251005.dist-info/RECORD,,
35
+ nvidia_nat_data_flywheel-1.3.0a20251007.dist-info/METADATA,sha256=mosj1nHXR33X7rr6mr212mOJM_MzPM-scjykgX2pHK0,1693
36
+ nvidia_nat_data_flywheel-1.3.0a20251007.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
37
+ nvidia_nat_data_flywheel-1.3.0a20251007.dist-info/entry_points.txt,sha256=ElemL8x3DrrcLB-NsVsrUWKbHMD6rapsvs8qoIGVWrY,295
38
+ nvidia_nat_data_flywheel-1.3.0a20251007.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
39
+ nvidia_nat_data_flywheel-1.3.0a20251007.dist-info/RECORD,,