ragaai-catalyst 2.1.5b26__py3-none-any.whl → 2.1.5b27__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.
@@ -13,8 +13,12 @@ import traceback
13
13
  import importlib
14
14
  import sys
15
15
  from litellm import model_cost
16
- from llama_index.core.base.llms.types import ChatResponse,TextBlock, ChatMessage
16
+ import logging
17
17
 
18
+ try:
19
+ from llama_index.core.base.llms.types import ChatResponse,TextBlock, ChatMessage
20
+ except ImportError:
21
+ logging.warning("Failed to import ChatResponse, TextBlock, ChatMessage. Some features from llamaindex may not work. Please upgrade to the latest version of llama_index or version (>=0.12)")
18
22
  from .base import BaseTracer
19
23
  from ..utils.llm_utils import (
20
24
  extract_model_name,
@@ -30,7 +34,6 @@ from ..utils.llm_utils import (
30
34
  from ..utils.unique_decorator import generate_unique_hash
31
35
  from ..utils.file_name_tracker import TrackName
32
36
  from ..utils.span_attributes import SpanAttributes
33
- import logging
34
37
 
35
38
  logger = logging.getLogger(__name__)
36
39
  logging_level = (
@@ -8,6 +8,7 @@ import ast
8
8
  import importlib.util
9
9
  import json
10
10
  import ipynbname
11
+ from copy import deepcopy
11
12
 
12
13
  from pathlib import Path
13
14
  from IPython import get_ipython
@@ -371,7 +372,8 @@ class TraceDependencyTracker:
371
372
  except Exception as e:
372
373
  pass
373
374
 
374
- for filepath in self.tracked_files:
375
+ curr_tracked_files = deepcopy(self.tracked_files)
376
+ for filepath in curr_tracked_files:
375
377
  try:
376
378
  with open(filepath, 'r', encoding='utf-8') as file:
377
379
  content = file.read()
@@ -447,7 +449,11 @@ class TraceDependencyTracker:
447
449
  continue
448
450
  try:
449
451
  relative_path = os.path.relpath(filepath, base_path)
450
- zipf.write(filepath, relative_path)
452
+ if relative_path in ['', '.']:
453
+ zipf.write(filepath, os.path.basename(filepath))
454
+ else:
455
+ zipf.write(filepath, relative_path)
456
+
451
457
  logger.debug(f"Added python script to zip: {relative_path}")
452
458
  except Exception as e:
453
459
  pass
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ragaai_catalyst
3
- Version: 2.1.5b26
3
+ Version: 2.1.5b27
4
4
  Summary: RAGA AI CATALYST
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>
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>, Tushar Kumar <tushar.kumar@raga.ai>
6
6
  Requires-Python: <3.13,>=3.9
7
7
  Description-Content-Type: text/markdown
8
8
  License-File: LICENSE
@@ -34,7 +34,7 @@ ragaai_catalyst/tracers/agentic_tracing/tracers/agent_tracer.py,sha256=LzbsHvELw
34
34
  ragaai_catalyst/tracers/agentic_tracing/tracers/base.py,sha256=0eFrHtEddxYBQnkilGXOAMpen09bFV3jkymywTjDSU4,46139
35
35
  ragaai_catalyst/tracers/agentic_tracing/tracers/custom_tracer.py,sha256=OBJJjFSvwRjCGNJyqX3yIfC1W05ZN2QUXasCJ4gmCjQ,13930
36
36
  ragaai_catalyst/tracers/agentic_tracing/tracers/langgraph_tracer.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
- ragaai_catalyst/tracers/agentic_tracing/tracers/llm_tracer.py,sha256=E39Fjeyr9dIp0ZSdPgh9txk380Hd9YnOMLBYE4udAWg,50137
37
+ ragaai_catalyst/tracers/agentic_tracing/tracers/llm_tracer.py,sha256=knHM7mzr7JZhA0kEzwdNQ0ESDoBHYyi7Ffn5hn6jQGA,50360
38
38
  ragaai_catalyst/tracers/agentic_tracing/tracers/main_tracer.py,sha256=PYYNNeFfsQpw5D4A0jzwNYhAvC1bMT5vtAGaTsgk2xY,16112
39
39
  ragaai_catalyst/tracers/agentic_tracing/tracers/network_tracer.py,sha256=m8CxYkl7iMiFya_lNwN1ykBc3Pmo-2pR_2HmpptwHWQ,10352
40
40
  ragaai_catalyst/tracers/agentic_tracing/tracers/tool_tracer.py,sha256=xxrliKPfdfbIZRZqMnUewsaTD8_Hv0dbuoBivNZGD4U,21674
@@ -57,7 +57,7 @@ ragaai_catalyst/tracers/agentic_tracing/utils/supported_llm_provider.toml,sha256
57
57
  ragaai_catalyst/tracers/agentic_tracing/utils/system_monitor.py,sha256=H8WNsk4v_5T6OUw4TFOzlDLjQhJwjh1nAMyMAoqMEi4,6946
58
58
  ragaai_catalyst/tracers/agentic_tracing/utils/trace_utils.py,sha256=go7FVnofviATDph-j8sk2juv09CGSRt1Vq4U868Fhd8,2259
59
59
  ragaai_catalyst/tracers/agentic_tracing/utils/unique_decorator.py,sha256=G027toV-Km20JjKrc-Y_PilQ8ABEKrBvvzgLTnqVg7I,5819
60
- ragaai_catalyst/tracers/agentic_tracing/utils/zip_list_of_unique_files.py,sha256=IytYvxcutzliVOuNsiYq4Pv9Nrw3EcH7YeCRhxaBDbw,19921
60
+ ragaai_catalyst/tracers/agentic_tracing/utils/zip_list_of_unique_files.py,sha256=4Iu_pJPVS6C7S6aHvJkz7q6jVw135EVAiiaTjtyjQ8s,20180
61
61
  ragaai_catalyst/tracers/exporters/__init__.py,sha256=kVA8zp05h3phu4e-iHSlnznp_PzMRczB7LphSsZgUjg,138
62
62
  ragaai_catalyst/tracers/exporters/file_span_exporter.py,sha256=RgGteu-NVGprXKkynvyIO5yOjpbtA41R3W_NzCjnkwE,6445
63
63
  ragaai_catalyst/tracers/exporters/raga_exporter.py,sha256=6xvjWXyh8XPkHKSLLmAZUQSvwuyY17ov8pv2VdfI0qA,17875
@@ -71,8 +71,8 @@ ragaai_catalyst/tracers/utils/convert_llama_instru_callback.py,sha256=8qLo7x4Zsn
71
71
  ragaai_catalyst/tracers/utils/extraction_logic_llama_index.py,sha256=ZhPs0YhVtB82-Pq9o1BvCinKE_WPvVxPTEcZjlJbFYM,2371
72
72
  ragaai_catalyst/tracers/utils/langchain_tracer_extraction_logic.py,sha256=XS2_x2qneqEx9oAighLg-LRiueWcESLwIC2r7eJT-Ww,3117
73
73
  ragaai_catalyst/tracers/utils/utils.py,sha256=ViygfJ7vZ7U0CTSA1lbxVloHp4NSlmfDzBRNCJuMhis,2374
74
- ragaai_catalyst-2.1.5b26.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
75
- ragaai_catalyst-2.1.5b26.dist-info/METADATA,sha256=e1Q9FXZLICMpzTfcMihQJZqycGVJvHXWTUrRjfKcZ3c,14123
76
- ragaai_catalyst-2.1.5b26.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
77
- ragaai_catalyst-2.1.5b26.dist-info/top_level.txt,sha256=HpgsdRgEJMk8nqrU6qdCYk3di7MJkDL0B19lkc7dLfM,16
78
- ragaai_catalyst-2.1.5b26.dist-info/RECORD,,
74
+ ragaai_catalyst-2.1.5b27.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
75
+ ragaai_catalyst-2.1.5b27.dist-info/METADATA,sha256=cFqgoEcNn3EKitmc2APLO__ZomawZQc_MEm0bflrHJ8,14160
76
+ ragaai_catalyst-2.1.5b27.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
77
+ ragaai_catalyst-2.1.5b27.dist-info/top_level.txt,sha256=HpgsdRgEJMk8nqrU6qdCYk3di7MJkDL0B19lkc7dLfM,16
78
+ ragaai_catalyst-2.1.5b27.dist-info/RECORD,,