ragaai-catalyst 2.1.4b1__py3-none-any.whl → 2.1.4b2__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.
- ragaai_catalyst/tracers/agentic_tracing/tracers/agent_tracer.py +15 -2
- ragaai_catalyst/tracers/agentic_tracing/tracers/llm_tracer.py +13 -2
- ragaai_catalyst/tracers/agentic_tracing/tracers/main_tracer.py +7 -5
- ragaai_catalyst/tracers/agentic_tracing/tracers/tool_tracer.py +14 -2
- {ragaai_catalyst-2.1.4b1.dist-info → ragaai_catalyst-2.1.4b2.dist-info}/METADATA +1 -1
- {ragaai_catalyst-2.1.4b1.dist-info → ragaai_catalyst-2.1.4b2.dist-info}/RECORD +8 -8
- {ragaai_catalyst-2.1.4b1.dist-info → ragaai_catalyst-2.1.4b2.dist-info}/WHEEL +0 -0
- {ragaai_catalyst-2.1.4b1.dist-info → ragaai_catalyst-2.1.4b2.dist-info}/top_level.txt +0 -0
@@ -514,6 +514,19 @@ class AgentTracerMixin:
|
|
514
514
|
kwargs["component_id"], []
|
515
515
|
)
|
516
516
|
start_time = kwargs["start_time"]
|
517
|
+
|
518
|
+
# Get tags, metrics
|
519
|
+
name = kwargs["name"]
|
520
|
+
# tags
|
521
|
+
tags = []
|
522
|
+
if name in self.span_attributes_dict:
|
523
|
+
tags = self.span_attributes_dict[name].tags or []
|
524
|
+
|
525
|
+
# metrics
|
526
|
+
metrics = []
|
527
|
+
if name in self.span_attributes_dict:
|
528
|
+
metrics = self.span_attributes_dict[name].metrics or []
|
529
|
+
|
517
530
|
component = {
|
518
531
|
"id": kwargs["component_id"],
|
519
532
|
"hash_id": kwargs["hash_id"],
|
@@ -529,14 +542,14 @@ class AgentTracerMixin:
|
|
529
542
|
"version": kwargs["version"],
|
530
543
|
"capabilities": kwargs["capabilities"],
|
531
544
|
"memory_used": kwargs["memory_used"],
|
532
|
-
"tags":
|
545
|
+
"tags": tags,
|
533
546
|
},
|
534
547
|
"data": {
|
535
548
|
"input": kwargs["input_data"],
|
536
549
|
"output": kwargs["output_data"],
|
537
550
|
"children": kwargs.get("children", []),
|
538
551
|
},
|
539
|
-
"metrics":
|
552
|
+
"metrics": metrics,
|
540
553
|
"network_calls": network_calls,
|
541
554
|
"interactions": interactions,
|
542
555
|
}
|
@@ -354,6 +354,17 @@ class LLMTracerMixin:
|
|
354
354
|
list(parameters_to_display.items())[: self.MAX_PARAMETERS_TO_DISPLAY]
|
355
355
|
)
|
356
356
|
|
357
|
+
# Get tags, metrics
|
358
|
+
# tags
|
359
|
+
tags = []
|
360
|
+
if name in self.span_attributes_dict:
|
361
|
+
tags = self.span_attributes_dict[name].tags or []
|
362
|
+
|
363
|
+
# metrics
|
364
|
+
metrics = []
|
365
|
+
if name in self.span_attributes_dict:
|
366
|
+
metrics = self.span_attributes_dict[name].metrics or []
|
367
|
+
|
357
368
|
component = {
|
358
369
|
"id": component_id,
|
359
370
|
"hash_id": hash_id,
|
@@ -370,7 +381,7 @@ class LLMTracerMixin:
|
|
370
381
|
"memory_used": memory_used,
|
371
382
|
"cost": cost,
|
372
383
|
"tokens": usage,
|
373
|
-
"tags":
|
384
|
+
"tags": tags,
|
374
385
|
**parameters_to_display,
|
375
386
|
},
|
376
387
|
"extra_info": parameters,
|
@@ -381,7 +392,7 @@ class LLMTracerMixin:
|
|
381
392
|
"output": output_data.output_response if output_data else None,
|
382
393
|
"memory_used": memory_used,
|
383
394
|
},
|
384
|
-
"metrics":
|
395
|
+
"metrics": metrics,
|
385
396
|
"network_calls": network_calls,
|
386
397
|
"interactions": interactions,
|
387
398
|
}
|
@@ -137,11 +137,13 @@ class AgenticTracing(
|
|
137
137
|
self.network_tracer.network_calls.copy()
|
138
138
|
)
|
139
139
|
self.network_tracer.network_calls = [] # Reset for next component
|
140
|
-
self.component_user_interaction[component_id] = [
|
141
|
-
|
142
|
-
|
143
|
-
if
|
144
|
-
|
140
|
+
# self.component_user_interaction[component_id] = [interaction for interaction in self.user_interaction_tracer.interactions if interaction.get('component_id') == component_id]
|
141
|
+
for interaction in self.user_interaction_tracer.interactions:
|
142
|
+
interaction_component_id = interaction.get("component_id")
|
143
|
+
if interaction_component_id not in self.component_user_interaction:
|
144
|
+
self.component_user_interaction[interaction_component_id] = []
|
145
|
+
if interaction not in self.component_user_interaction[interaction_component_id]:
|
146
|
+
self.component_user_interaction[interaction_component_id].append(interaction)
|
145
147
|
|
146
148
|
def start(self):
|
147
149
|
"""Start tracing"""
|
@@ -265,6 +265,18 @@ class ToolTracerMixin:
|
|
265
265
|
kwargs["component_id"], []
|
266
266
|
)
|
267
267
|
|
268
|
+
# Get tags, metrics
|
269
|
+
name = kwargs["name"]
|
270
|
+
# tags
|
271
|
+
tags = []
|
272
|
+
if name in self.span_attributes_dict:
|
273
|
+
tags = self.span_attributes_dict[name].tags or []
|
274
|
+
|
275
|
+
# metrics
|
276
|
+
metrics = []
|
277
|
+
if name in self.span_attributes_dict:
|
278
|
+
metrics = self.span_attributes_dict[name].metrics or []
|
279
|
+
|
268
280
|
start_time = kwargs["start_time"]
|
269
281
|
component = {
|
270
282
|
"id": kwargs["component_id"],
|
@@ -280,14 +292,14 @@ class ToolTracerMixin:
|
|
280
292
|
"tool_type": kwargs["tool_type"],
|
281
293
|
"version": kwargs["version"],
|
282
294
|
"memory_used": kwargs["memory_used"],
|
283
|
-
"tags":
|
295
|
+
"tags": tags,
|
284
296
|
},
|
285
297
|
"data": {
|
286
298
|
"input": kwargs["input_data"],
|
287
299
|
"output": kwargs["output_data"],
|
288
300
|
"memory_used": kwargs["memory_used"],
|
289
301
|
},
|
290
|
-
"metrics":
|
302
|
+
"metrics": metrics,
|
291
303
|
"network_calls": network_calls,
|
292
304
|
"interactions": interactions,
|
293
305
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: ragaai_catalyst
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.4b2
|
4
4
|
Summary: RAGA AI CATALYST
|
5
5
|
Author-email: Kiran Scaria <kiran.scaria@raga.ai>, Kedar Gaikwad <kedar.gaikwad@raga.ai>, Dushyant Mahajan <dushyant.mahajan@raga.ai>, Siddhartha Kosti <siddhartha.kosti@raga.ai>, Ritika Goel <ritika.goel@raga.ai>, Vijay Chaurasia <vijay.chaurasia@raga.ai>
|
6
6
|
Requires-Python: <3.13,>=3.9
|
@@ -26,13 +26,13 @@ ragaai_catalyst/tracers/agentic_tracing/tests/__init__.py,sha256=47DEQpj8HBSa-_T
|
|
26
26
|
ragaai_catalyst/tracers/agentic_tracing/tests/ai_travel_agent.py,sha256=S4rCcKzU_5SB62BYEbNn_1VbbTdG4396N8rdZ3ZNGcE,5654
|
27
27
|
ragaai_catalyst/tracers/agentic_tracing/tests/unique_decorator_test.py,sha256=Xk1cLzs-2A3dgyBwRRnCWs7Eubki40FVonwd433hPN8,4805
|
28
28
|
ragaai_catalyst/tracers/agentic_tracing/tracers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
29
|
-
ragaai_catalyst/tracers/agentic_tracing/tracers/agent_tracer.py,sha256=
|
29
|
+
ragaai_catalyst/tracers/agentic_tracing/tracers/agent_tracer.py,sha256=unr4AVpXu2IJeNz_oL-fEtJ-tNmbCgdWJN5euCfdC8c,24951
|
30
30
|
ragaai_catalyst/tracers/agentic_tracing/tracers/base.py,sha256=z2e1kGVAi_oBK__tCs0OiSVMYjqAeAdXd7CeZYzYWJA,34660
|
31
31
|
ragaai_catalyst/tracers/agentic_tracing/tracers/custom_tracer.py,sha256=tcOXzWTZlDdlBamCR0g5Sks5WwmKCK93R0ijIbDeSpI,12467
|
32
|
-
ragaai_catalyst/tracers/agentic_tracing/tracers/llm_tracer.py,sha256=
|
33
|
-
ragaai_catalyst/tracers/agentic_tracing/tracers/main_tracer.py,sha256=
|
32
|
+
ragaai_catalyst/tracers/agentic_tracing/tracers/llm_tracer.py,sha256=9EYrfkMYNYXYur9msb0wmxJlN_c58mzSj-GTDbLb154,28759
|
33
|
+
ragaai_catalyst/tracers/agentic_tracing/tracers/main_tracer.py,sha256=Tthd1lm_QKeY8E4HLYWW9djujnOO_5X-LIKnv1pNwJI,15092
|
34
34
|
ragaai_catalyst/tracers/agentic_tracing/tracers/network_tracer.py,sha256=Tq9by4DV51UR4BCUc3fnAiNR4SZku-gOaOfjJryowAA,10218
|
35
|
-
ragaai_catalyst/tracers/agentic_tracing/tracers/tool_tracer.py,sha256=
|
35
|
+
ragaai_catalyst/tracers/agentic_tracing/tracers/tool_tracer.py,sha256=PD027GHkbEwLUINXYradgblSEN8d2cqkHwpyX3RP_uw,11627
|
36
36
|
ragaai_catalyst/tracers/agentic_tracing/tracers/user_interaction_tracer.py,sha256=nrRqjHgAPNJjlU-WgLKqfQ92SzT7usV45T4jW4hwhrc,4575
|
37
37
|
ragaai_catalyst/tracers/agentic_tracing/upload/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
38
|
ragaai_catalyst/tracers/agentic_tracing/upload/upload_agentic_traces.py,sha256=1MDKXAAPzOEdxFKWWQrRgrmM3kz--DGXSywGXQmR3lQ,6041
|
@@ -59,7 +59,7 @@ ragaai_catalyst/tracers/instrumentators/llamaindex.py,sha256=SMrRlR4xM7k9HK43hak
|
|
59
59
|
ragaai_catalyst/tracers/instrumentators/openai.py,sha256=14R4KW9wQCR1xysLfsP_nxS7cqXrTPoD8En4MBAaZUU,379
|
60
60
|
ragaai_catalyst/tracers/utils/__init__.py,sha256=KeMaZtYaTojilpLv65qH08QmpYclfpacDA0U3wg6Ybw,64
|
61
61
|
ragaai_catalyst/tracers/utils/utils.py,sha256=ViygfJ7vZ7U0CTSA1lbxVloHp4NSlmfDzBRNCJuMhis,2374
|
62
|
-
ragaai_catalyst-2.1.
|
63
|
-
ragaai_catalyst-2.1.
|
64
|
-
ragaai_catalyst-2.1.
|
65
|
-
ragaai_catalyst-2.1.
|
62
|
+
ragaai_catalyst-2.1.4b2.dist-info/METADATA,sha256=hAIHL6OVFHUiGDUdh94meRnU5YUhuBdRcco94cTtA8c,12770
|
63
|
+
ragaai_catalyst-2.1.4b2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
64
|
+
ragaai_catalyst-2.1.4b2.dist-info/top_level.txt,sha256=HpgsdRgEJMk8nqrU6qdCYk3di7MJkDL0B19lkc7dLfM,16
|
65
|
+
ragaai_catalyst-2.1.4b2.dist-info/RECORD,,
|
File without changes
|
File without changes
|