ragaai-catalyst 2.2.4b4__py3-none-any.whl → 2.2.5b1__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.
Files changed (46) hide show
  1. ragaai_catalyst/__init__.py +0 -2
  2. ragaai_catalyst/dataset.py +59 -1
  3. ragaai_catalyst/tracers/agentic_tracing/tracers/main_tracer.py +1 -22
  4. ragaai_catalyst/tracers/agentic_tracing/utils/__init__.py +0 -2
  5. ragaai_catalyst/tracers/agentic_tracing/utils/create_dataset_schema.py +1 -1
  6. ragaai_catalyst/tracers/exporters/__init__.py +1 -2
  7. ragaai_catalyst/tracers/exporters/file_span_exporter.py +0 -1
  8. ragaai_catalyst/tracers/exporters/ragaai_trace_exporter.py +23 -1
  9. ragaai_catalyst/tracers/tracer.py +6 -186
  10. ragaai_catalyst/tracers/utils/trace_json_converter.py +2 -2
  11. {ragaai_catalyst-2.2.4b4.dist-info → ragaai_catalyst-2.2.5b1.dist-info}/METADATA +1 -1
  12. {ragaai_catalyst-2.2.4b4.dist-info → ragaai_catalyst-2.2.5b1.dist-info}/RECORD +15 -46
  13. ragaai_catalyst/experiment.py +0 -486
  14. ragaai_catalyst/tracers/agentic_tracing/tests/FinancialAnalysisSystem.ipynb +0 -536
  15. ragaai_catalyst/tracers/agentic_tracing/tests/GameActivityEventPlanner.ipynb +0 -134
  16. ragaai_catalyst/tracers/agentic_tracing/tests/TravelPlanner.ipynb +0 -563
  17. ragaai_catalyst/tracers/agentic_tracing/tests/__init__.py +0 -0
  18. ragaai_catalyst/tracers/agentic_tracing/tests/ai_travel_agent.py +0 -197
  19. ragaai_catalyst/tracers/agentic_tracing/tests/unique_decorator_test.py +0 -172
  20. ragaai_catalyst/tracers/agentic_tracing/tracers/agent_tracer.py +0 -687
  21. ragaai_catalyst/tracers/agentic_tracing/tracers/base.py +0 -1319
  22. ragaai_catalyst/tracers/agentic_tracing/tracers/custom_tracer.py +0 -347
  23. ragaai_catalyst/tracers/agentic_tracing/tracers/langgraph_tracer.py +0 -0
  24. ragaai_catalyst/tracers/agentic_tracing/tracers/llm_tracer.py +0 -1182
  25. ragaai_catalyst/tracers/agentic_tracing/tracers/network_tracer.py +0 -288
  26. ragaai_catalyst/tracers/agentic_tracing/tracers/tool_tracer.py +0 -557
  27. ragaai_catalyst/tracers/agentic_tracing/tracers/user_interaction_tracer.py +0 -129
  28. ragaai_catalyst/tracers/agentic_tracing/upload/upload_local_metric.py +0 -74
  29. ragaai_catalyst/tracers/agentic_tracing/utils/api_utils.py +0 -21
  30. ragaai_catalyst/tracers/agentic_tracing/utils/generic.py +0 -32
  31. ragaai_catalyst/tracers/agentic_tracing/utils/get_user_trace_metrics.py +0 -28
  32. ragaai_catalyst/tracers/agentic_tracing/utils/span_attributes.py +0 -133
  33. ragaai_catalyst/tracers/agentic_tracing/utils/supported_llm_provider.toml +0 -34
  34. ragaai_catalyst/tracers/exporters/raga_exporter.py +0 -467
  35. ragaai_catalyst/tracers/langchain_callback.py +0 -821
  36. ragaai_catalyst/tracers/llamaindex_callback.py +0 -361
  37. ragaai_catalyst/tracers/llamaindex_instrumentation.py +0 -424
  38. ragaai_catalyst/tracers/upload_traces.py +0 -170
  39. ragaai_catalyst/tracers/utils/convert_langchain_callbacks_output.py +0 -62
  40. ragaai_catalyst/tracers/utils/convert_llama_instru_callback.py +0 -69
  41. ragaai_catalyst/tracers/utils/extraction_logic_llama_index.py +0 -74
  42. ragaai_catalyst/tracers/utils/langchain_tracer_extraction_logic.py +0 -82
  43. ragaai_catalyst/tracers/utils/rag_trace_json_converter.py +0 -403
  44. {ragaai_catalyst-2.2.4b4.dist-info → ragaai_catalyst-2.2.5b1.dist-info}/WHEEL +0 -0
  45. {ragaai_catalyst-2.2.4b4.dist-info → ragaai_catalyst-2.2.5b1.dist-info}/licenses/LICENSE +0 -0
  46. {ragaai_catalyst-2.2.4b4.dist-info → ragaai_catalyst-2.2.5b1.dist-info}/top_level.txt +0 -0
@@ -1,134 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "markdown",
5
- "id": "b4bb06bd",
6
- "metadata": {},
7
- "source": [
8
- "\n",
9
- "# Game Activity Event Planner\n",
10
- "\n",
11
- "This notebook demonstrates AgentNeo's ability to:\n",
12
- "1. Search for locations where badminton is played.\n",
13
- "2. Find nearby locations based on user input.\n",
14
- "3. Filter locations based on weekends and specific time slots (6-8 PM).\n",
15
- "4. Book 2 courts for singles or doubles matches.\n",
16
- "\n",
17
- "### Use Case\n",
18
- "A group of 6 players wants to book 2 courts to play badminton during the weekend (6-8 PM). This notebook tests the AgentNeo application for its planning functionality.\n"
19
- ]
20
- },
21
- {
22
- "cell_type": "code",
23
- "execution_count": null,
24
- "id": "6e6913d5",
25
- "metadata": {},
26
- "outputs": [],
27
- "source": [
28
- "\n",
29
- "# Install necessary packages\n",
30
- "!pip install agentneo\n",
31
- "\n",
32
- "# Import required libraries\n",
33
- "from agentneo import Planner, LocationFinder, CourtBooking\n",
34
- "import datetime\n"
35
- ]
36
- },
37
- {
38
- "cell_type": "code",
39
- "execution_count": null,
40
- "id": "221625df",
41
- "metadata": {},
42
- "outputs": [],
43
- "source": [
44
- "\n",
45
- "# Define user input and search parameters\n",
46
- "\n",
47
- "# User's current location (latitude, longitude)\n",
48
- "user_location = {\"latitude\": 37.7749, \"longitude\": -122.4194} # Example: San Francisco\n",
49
- "\n",
50
- "# Time and date filtering for the weekend\n",
51
- "today = datetime.date.today()\n",
52
- "weekend_days = [today + datetime.timedelta(days=(5 - today.weekday()) % 7 + i) for i in range(2)]\n",
53
- "\n",
54
- "time_slot = {\"start\": \"18:00\", \"end\": \"20:00\"} # 6-8 PM\n",
55
- "\n",
56
- "# Number of players and courts required\n",
57
- "num_players = 6\n",
58
- "num_courts = 2\n",
59
- "\n",
60
- "print(\"Search Parameters Defined:\")\n",
61
- "print(f\"User Location: {user_location}\")\n",
62
- "print(f\"Weekend Days: {weekend_days}\")\n",
63
- "print(f\"Time Slot: {time_slot}\")\n",
64
- "print(f\"Players: {num_players}, Courts: {num_courts}\")\n"
65
- ]
66
- },
67
- {
68
- "cell_type": "code",
69
- "execution_count": null,
70
- "id": "a38c6e7d",
71
- "metadata": {},
72
- "outputs": [],
73
- "source": [
74
- "\n",
75
- "# Find locations where badminton is played\n",
76
- "location_finder = LocationFinder()\n",
77
- "\n",
78
- "# Search for badminton locations nearby\n",
79
- "badminton_locations = location_finder.find_locations(activity=\"badminton\", \n",
80
- " user_location=user_location, \n",
81
- " max_distance=10) # Within 10 km\n",
82
- "\n",
83
- "print(\"Available Badminton Locations Found:\")\n",
84
- "for loc in badminton_locations:\n",
85
- " print(loc)\n"
86
- ]
87
- },
88
- {
89
- "cell_type": "code",
90
- "execution_count": null,
91
- "id": "6fdadfd7",
92
- "metadata": {},
93
- "outputs": [],
94
- "source": [
95
- "\n",
96
- "# Filter locations for weekends and the specified time slot\n",
97
- "available_locations = []\n",
98
- "\n",
99
- "for loc in badminton_locations:\n",
100
- " if location_finder.is_available(location=loc, days=weekend_days, time_slot=time_slot):\n",
101
- " available_locations.append(loc)\n",
102
- "\n",
103
- "print(\"Filtered Locations for Weekends and 6-8 PM:\")\n",
104
- "for loc in available_locations:\n",
105
- " print(loc)\n"
106
- ]
107
- },
108
- {
109
- "cell_type": "code",
110
- "execution_count": null,
111
- "id": "19775831",
112
- "metadata": {},
113
- "outputs": [],
114
- "source": [
115
- "\n",
116
- "# Book 2 courts for singles or doubles matches\n",
117
- "court_booking = CourtBooking()\n",
118
- "\n",
119
- "if available_locations:\n",
120
- " booking_details = court_booking.book_courts(location=available_locations[0], \n",
121
- " num_courts=num_courts, \n",
122
- " players=num_players, \n",
123
- " time_slot=time_slot)\n",
124
- " print(\"Court Booking Details:\")\n",
125
- " print(booking_details)\n",
126
- "else:\n",
127
- " print(\"No suitable locations found for booking.\")\n"
128
- ]
129
- }
130
- ],
131
- "metadata": {},
132
- "nbformat": 4,
133
- "nbformat_minor": 5
134
- }