prela 0.1.0__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 (71) hide show
  1. prela/__init__.py +394 -0
  2. prela/_version.py +3 -0
  3. prela/contrib/CLI.md +431 -0
  4. prela/contrib/README.md +118 -0
  5. prela/contrib/__init__.py +5 -0
  6. prela/contrib/cli.py +1063 -0
  7. prela/contrib/explorer.py +571 -0
  8. prela/core/__init__.py +64 -0
  9. prela/core/clock.py +98 -0
  10. prela/core/context.py +228 -0
  11. prela/core/replay.py +403 -0
  12. prela/core/sampler.py +178 -0
  13. prela/core/span.py +295 -0
  14. prela/core/tracer.py +498 -0
  15. prela/evals/__init__.py +94 -0
  16. prela/evals/assertions/README.md +484 -0
  17. prela/evals/assertions/__init__.py +78 -0
  18. prela/evals/assertions/base.py +90 -0
  19. prela/evals/assertions/multi_agent.py +625 -0
  20. prela/evals/assertions/semantic.py +223 -0
  21. prela/evals/assertions/structural.py +443 -0
  22. prela/evals/assertions/tool.py +380 -0
  23. prela/evals/case.py +370 -0
  24. prela/evals/n8n/__init__.py +69 -0
  25. prela/evals/n8n/assertions.py +450 -0
  26. prela/evals/n8n/runner.py +497 -0
  27. prela/evals/reporters/README.md +184 -0
  28. prela/evals/reporters/__init__.py +32 -0
  29. prela/evals/reporters/console.py +251 -0
  30. prela/evals/reporters/json.py +176 -0
  31. prela/evals/reporters/junit.py +278 -0
  32. prela/evals/runner.py +525 -0
  33. prela/evals/suite.py +316 -0
  34. prela/exporters/__init__.py +27 -0
  35. prela/exporters/base.py +189 -0
  36. prela/exporters/console.py +443 -0
  37. prela/exporters/file.py +322 -0
  38. prela/exporters/http.py +394 -0
  39. prela/exporters/multi.py +154 -0
  40. prela/exporters/otlp.py +388 -0
  41. prela/instrumentation/ANTHROPIC.md +297 -0
  42. prela/instrumentation/LANGCHAIN.md +480 -0
  43. prela/instrumentation/OPENAI.md +59 -0
  44. prela/instrumentation/__init__.py +49 -0
  45. prela/instrumentation/anthropic.py +1436 -0
  46. prela/instrumentation/auto.py +129 -0
  47. prela/instrumentation/base.py +436 -0
  48. prela/instrumentation/langchain.py +959 -0
  49. prela/instrumentation/llamaindex.py +719 -0
  50. prela/instrumentation/multi_agent/__init__.py +48 -0
  51. prela/instrumentation/multi_agent/autogen.py +357 -0
  52. prela/instrumentation/multi_agent/crewai.py +404 -0
  53. prela/instrumentation/multi_agent/langgraph.py +299 -0
  54. prela/instrumentation/multi_agent/models.py +203 -0
  55. prela/instrumentation/multi_agent/swarm.py +231 -0
  56. prela/instrumentation/n8n/__init__.py +68 -0
  57. prela/instrumentation/n8n/code_node.py +534 -0
  58. prela/instrumentation/n8n/models.py +336 -0
  59. prela/instrumentation/n8n/webhook.py +489 -0
  60. prela/instrumentation/openai.py +1198 -0
  61. prela/license.py +245 -0
  62. prela/replay/__init__.py +31 -0
  63. prela/replay/comparison.py +390 -0
  64. prela/replay/engine.py +1227 -0
  65. prela/replay/loader.py +231 -0
  66. prela/replay/result.py +196 -0
  67. prela-0.1.0.dist-info/METADATA +399 -0
  68. prela-0.1.0.dist-info/RECORD +71 -0
  69. prela-0.1.0.dist-info/WHEEL +4 -0
  70. prela-0.1.0.dist-info/entry_points.txt +2 -0
  71. prela-0.1.0.dist-info/licenses/LICENSE +190 -0
@@ -0,0 +1,399 @@
1
+ Metadata-Version: 2.4
2
+ Name: prela
3
+ Version: 0.1.0
4
+ Summary: AI Agent Observability Platform SDK
5
+ Project-URL: Homepage, https://github.com/garrettw2200/prela-sdk
6
+ Project-URL: Documentation, https://docs.prela.dev
7
+ Project-URL: Repository, https://github.com/garrettw2200/prela-sdk
8
+ Project-URL: Bug Tracker, https://github.com/garrettw2200/prela-sdk/issues
9
+ Author: Prela Team
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
+ Classifier: Topic :: System :: Monitoring
22
+ Requires-Python: >=3.9
23
+ Provides-Extra: all
24
+ Requires-Dist: anthropic>=0.18.0; extra == 'all'
25
+ Requires-Dist: langchain>=0.1.0; extra == 'all'
26
+ Requires-Dist: openai>=1.0.0; extra == 'all'
27
+ Requires-Dist: pyyaml>=6.0; extra == 'all'
28
+ Requires-Dist: requests>=2.31.0; extra == 'all'
29
+ Requires-Dist: rich>=13.0.0; extra == 'all'
30
+ Requires-Dist: textual>=0.50.0; extra == 'all'
31
+ Requires-Dist: typer>=0.9.0; extra == 'all'
32
+ Provides-Extra: anthropic
33
+ Requires-Dist: anthropic>=0.18.0; extra == 'anthropic'
34
+ Provides-Extra: cli
35
+ Requires-Dist: pyyaml>=6.0; extra == 'cli'
36
+ Requires-Dist: rich>=13.0.0; extra == 'cli'
37
+ Requires-Dist: textual>=0.50.0; extra == 'cli'
38
+ Requires-Dist: typer>=0.9.0; extra == 'cli'
39
+ Provides-Extra: dev
40
+ Requires-Dist: black>=23.0.0; extra == 'dev'
41
+ Requires-Dist: mypy>=1.5.0; extra == 'dev'
42
+ Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
43
+ Requires-Dist: pytest>=7.4.0; extra == 'dev'
44
+ Requires-Dist: ruff>=0.1.0; extra == 'dev'
45
+ Provides-Extra: langchain
46
+ Requires-Dist: langchain>=0.1.0; extra == 'langchain'
47
+ Provides-Extra: openai
48
+ Requires-Dist: openai>=1.0.0; extra == 'openai'
49
+ Provides-Extra: otlp
50
+ Requires-Dist: requests>=2.31.0; extra == 'otlp'
51
+ Description-Content-Type: text/markdown
52
+
53
+ # Prela SDK
54
+
55
+ [![PyPI version](https://badge.fury.io/py/prela.svg)](https://badge.fury.io/py/prela)
56
+ [![Python Support](https://img.shields.io/pypi/pyversions/prela.svg)](https://pypi.org/project/prela/)
57
+ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
58
+ [![Tests](https://github.com/garrettw2200/prela-sdk/actions/workflows/test.yml/badge.svg)](https://github.com/garrettw2200/prela-sdk/actions/workflows/test.yml)
59
+
60
+ **Open-source Python SDK for AI agent observability, testing, and debugging.**
61
+
62
+ Prela provides comprehensive instrumentation, evaluation frameworks, and replay capabilities for AI agents built with OpenAI, Anthropic, LangChain, LlamaIndex, CrewAI, AutoGen, LangGraph, and more.
63
+
64
+ ## Features
65
+
66
+ - 🔍 **Auto-instrumentation** - Zero-code observability for 10+ AI frameworks
67
+ - 📊 **Evaluation Framework** - 17+ assertion types for testing agent behavior
68
+ - 🔄 **Replay Engine** - Deterministic replay for debugging and testing
69
+ - 📤 **Multiple Exporters** - Console, file, HTTP, and ClickHouse outputs
70
+ - 🎯 **Multi-Agent Support** - Track complex agent interactions and delegations
71
+ - 🛠️ **CLI Tools** - Command-line interface for trace management
72
+ - 🧪 **Production Ready** - 836+ tests with comprehensive coverage
73
+
74
+ ## Installation
75
+
76
+ ```bash
77
+ pip install prela
78
+ ```
79
+
80
+ ### With Optional Integrations
81
+
82
+ ```bash
83
+ # Install specific integrations
84
+ pip install prela[openai] # OpenAI SDK
85
+ pip install prela[anthropic] # Anthropic/Claude SDK
86
+ pip install prela[langchain] # LangChain
87
+ pip install prela[llamaindex] # LlamaIndex
88
+
89
+ # Install all integrations
90
+ pip install prela[all]
91
+
92
+ # Install with development tools
93
+ pip install prela[dev]
94
+
95
+ # Install with CLI tools
96
+ pip install prela[cli]
97
+ ```
98
+
99
+ ## Quick Start
100
+
101
+ ### Basic Usage
102
+
103
+ ```python
104
+ import prela
105
+
106
+ # Initialize with console output
107
+ prela.init(service_name="my-agent", exporter="console")
108
+
109
+ # Your AI agent code here
110
+ from openai import OpenAI
111
+
112
+ client = OpenAI()
113
+ response = client.chat.completions.create(
114
+ model="gpt-4",
115
+ messages=[{"role": "user", "content": "Hello!"}]
116
+ )
117
+
118
+ # Prela automatically traces the OpenAI call
119
+ ```
120
+
121
+ ### Auto-Instrumentation
122
+
123
+ Prela automatically instruments supported frameworks:
124
+
125
+ ```python
126
+ import prela
127
+
128
+ # One-line initialization
129
+ prela.init(service_name="my-app", exporter="console")
130
+
131
+ # All these frameworks are automatically traced:
132
+ # - OpenAI API calls
133
+ # - Anthropic/Claude API calls
134
+ # - LangChain chains and agents
135
+ # - LlamaIndex queries
136
+ # - CrewAI tasks
137
+ # - AutoGen conversations
138
+ # - LangGraph workflows
139
+ # - OpenAI Swarm agents
140
+ ```
141
+
142
+ ### Manual Instrumentation
143
+
144
+ ```python
145
+ from prela import trace
146
+
147
+ @trace
148
+ def my_agent_function(user_input: str):
149
+ # Your agent logic here
150
+ return process_input(user_input)
151
+
152
+ # Or use context managers
153
+ from prela import tracer
154
+
155
+ with tracer.start_span("complex-operation") as span:
156
+ result = do_something()
157
+ span.set_attribute("result_count", len(result))
158
+ ```
159
+
160
+ ### Evaluation Framework
161
+
162
+ ```python
163
+ from prela.evals import EvalRunner, TestCase, Assertion
164
+
165
+ # Define test cases
166
+ test_cases = [
167
+ TestCase(
168
+ name="greeting-test",
169
+ input={"message": "Hello"},
170
+ assertions=[
171
+ Assertion.contains("hello", case_sensitive=False),
172
+ Assertion.max_length(100)
173
+ ]
174
+ )
175
+ ]
176
+
177
+ # Run evaluations
178
+ runner = EvalRunner()
179
+ results = runner.run(my_agent_function, test_cases)
180
+ results.print_summary()
181
+ ```
182
+
183
+ ### Replay Engine
184
+
185
+ ```python
186
+ from prela.replay import ReplayEngine
187
+
188
+ # Load a trace
189
+ engine = ReplayEngine()
190
+ trace = engine.load_trace("trace_id_123")
191
+
192
+ # Replay with comparison
193
+ replay_result = engine.replay(trace)
194
+ comparison = engine.compare(trace, replay_result)
195
+
196
+ print(f"Similarity: {comparison.similarity_score}")
197
+ ```
198
+
199
+ ## Supported Frameworks
200
+
201
+ | Framework | Auto-Instrumentation | Manual Tracing | Version Support |
202
+ |-----------|---------------------|----------------|-----------------|
203
+ | OpenAI | ✅ | ✅ | >=1.0.0 |
204
+ | Anthropic | ✅ | ✅ | >=0.18.0 |
205
+ | LangChain | ✅ | ✅ | >=0.1.0 |
206
+ | LlamaIndex | ✅ | ✅ | >=0.9.0 |
207
+ | CrewAI | ✅ | ✅ | >=0.1.0 |
208
+ | AutoGen | ✅ | ✅ | >=0.2.0 |
209
+ | LangGraph | ✅ | ✅ | >=0.0.20 |
210
+ | OpenAI Swarm | ✅ | ✅ | >=0.1.0 |
211
+ | N8N | ✅ | ✅ | All versions |
212
+
213
+ ## Exporters
214
+
215
+ ### Console Exporter
216
+
217
+ ```python
218
+ prela.init(exporter="console")
219
+ ```
220
+
221
+ ### File Exporter
222
+
223
+ ```python
224
+ prela.init(
225
+ exporter="file",
226
+ file_path="traces.jsonl"
227
+ )
228
+ ```
229
+
230
+ ### HTTP Exporter
231
+
232
+ ```python
233
+ prela.init(
234
+ exporter="http",
235
+ endpoint="https://api.prela.io",
236
+ api_key="your-api-key"
237
+ )
238
+ ```
239
+
240
+ ### ClickHouse Exporter
241
+
242
+ ```python
243
+ prela.init(
244
+ exporter="clickhouse",
245
+ clickhouse_host="localhost",
246
+ clickhouse_port=8123
247
+ )
248
+ ```
249
+
250
+ ## CLI Tools
251
+
252
+ ```bash
253
+ # List traces
254
+ prela list
255
+
256
+ # Show trace details
257
+ prela show <trace-id>
258
+
259
+ # Show most recent trace
260
+ prela last
261
+
262
+ # Search traces
263
+ prela search "error"
264
+
265
+ # Show failed traces
266
+ prela errors
267
+
268
+ # Interactive explorer
269
+ prela explore
270
+ ```
271
+
272
+ ## Evaluation Assertions
273
+
274
+ Prela includes 17+ assertion types:
275
+
276
+ **Structural Assertions:**
277
+ - `contains()` - Check for substring
278
+ - `regex()` - Pattern matching
279
+ - `json_schema()` - Validate JSON structure
280
+ - `length()` - Check output length
281
+
282
+ **Semantic Assertions:**
283
+ - `similarity()` - Embedding-based similarity
284
+
285
+ **Tool Assertions:**
286
+ - `tool_called()` - Verify tool usage
287
+ - `tool_args()` - Validate tool arguments
288
+ - `tool_sequence()` - Check tool call order
289
+
290
+ **Multi-Agent Assertions:**
291
+ - `agent_used()` - Verify agent participation
292
+ - `task_completed()` - Check task completion
293
+ - `delegation_pattern()` - Validate delegation
294
+ - `no_circular_delegation()` - Prevent cycles
295
+ - `collaboration_count()` - Track interactions
296
+
297
+ ## Advanced Features
298
+
299
+ ### Sampling
300
+
301
+ ```python
302
+ from prela.core import AlwaysOnSampler, ProbabilitySampler, RateLimitSampler
303
+
304
+ # Always sample
305
+ prela.init(sampler=AlwaysOnSampler())
306
+
307
+ # Sample 10% of traces
308
+ prela.init(sampler=ProbabilitySampler(0.1))
309
+
310
+ # Sample max 100 traces/second
311
+ prela.init(sampler=RateLimitSampler(100))
312
+ ```
313
+
314
+ ### Context Propagation
315
+
316
+ ```python
317
+ from prela import get_current_span
318
+
319
+ def my_function():
320
+ span = get_current_span()
321
+ span.set_attribute("custom_field", "value")
322
+ span.add_event("checkpoint reached")
323
+ ```
324
+
325
+ ### Custom Exporters
326
+
327
+ ```python
328
+ from prela.exporters import SpanExporter
329
+
330
+ class MyExporter(SpanExporter):
331
+ def export(self, spans):
332
+ for span in spans:
333
+ # Custom export logic
334
+ pass
335
+
336
+ prela.init(exporter=MyExporter())
337
+ ```
338
+
339
+ ## Examples
340
+
341
+ See the [examples/](examples/) directory for complete working examples:
342
+
343
+ - [OpenAI Chatbot](examples/openai_basic.py)
344
+ - [Anthropic Claude Agent](examples/anthropic_basic.py)
345
+ - [LangChain RAG](examples/langchain_rag.py)
346
+ - [CrewAI Multi-Agent](examples/crewai_example.py)
347
+ - [Evaluation Framework](examples/eval_runner.py)
348
+ - [Replay Engine](examples/replay_example.py)
349
+
350
+ ## Documentation
351
+
352
+ Full documentation is available at [docs.prela.dev](https://docs.prela.dev)
353
+
354
+ - [Getting Started Guide](https://docs.prela.dev/getting-started/)
355
+ - [API Reference](https://docs.prela.dev/api/)
356
+ - [Integration Guides](https://docs.prela.dev/integrations/)
357
+ - [Evaluation Framework](https://docs.prela.dev/evaluation/)
358
+ - [Replay Engine](https://docs.prela.dev/replay/)
359
+
360
+ ## Contributing
361
+
362
+ We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
363
+
364
+ ### Development Setup
365
+
366
+ ```bash
367
+ # Clone the repository
368
+ git clone https://github.com/garrettw2200/prela-sdk.git
369
+ cd prela-sdk
370
+
371
+ # Install development dependencies
372
+ pip install -e ".[dev,all]"
373
+
374
+ # Run tests
375
+ pytest
376
+
377
+ # Run linters
378
+ ruff check .
379
+ black .
380
+ mypy prela
381
+ ```
382
+
383
+ ## Community
384
+
385
+ - [GitHub Discussions](https://github.com/garrettw2200/prela-sdk/discussions)
386
+ - [Issue Tracker](https://github.com/garrettw2200/prela-sdk/issues)
387
+ - [Discord Community](https://discord.gg/prela) (coming soon)
388
+
389
+ ## License
390
+
391
+ Apache License 2.0 - see [LICENSE](LICENSE) for details.
392
+
393
+ ## Acknowledgments
394
+
395
+ Built with ❤️ by the Prela team and contributors.
396
+
397
+ ---
398
+
399
+ **Star this repo** if you find it useful! ⭐
@@ -0,0 +1,71 @@
1
+ prela/__init__.py,sha256=LwVGPeIf6W_rj0KOyQum7Q7nLIzsM7oV3za1-8zIEO4,13803
2
+ prela/_version.py,sha256=4uGVrjwzc3sdXWGrveVaZr8xlFj4r4fkbBMLJBrwxsg,64
3
+ prela/license.py,sha256=u6Kddiyp6GMFOlHvzXsxVQSHmI79CD7FV2-dWKVg89U,7246
4
+ prela/contrib/CLI.md,sha256=pB_XxzznSXiUgQ8taE71c3jOHrhDPggmFmNV4JJiqS8,10647
5
+ prela/contrib/README.md,sha256=ztYSsVoHH5OZ6JZ8eHJ1upeqnl0bgROJt108DOJcHmU,3497
6
+ prela/contrib/__init__.py,sha256=HSdzujo9fgJoAVrdQaxfZ3gAmMj3Rf5nxvruT7LEhlk,110
7
+ prela/contrib/cli.py,sha256=S6UsppRifTNTExliCC0DHyk2IybGdnta7hEphMyrsbo,35928
8
+ prela/contrib/explorer.py,sha256=6euOvf0oOukxIwXgtLCXN7tFmAHdrDNqGhgpMh85_Yw,18228
9
+ prela/core/__init__.py,sha256=RagaPn9lCigN7wRyuXPSaA5ujil2Fa4TJl4zWJNeQgE,1386
10
+ prela/core/clock.py,sha256=uTj9RvJsjfWLoZKTmXUBoJkHWJ2RAqFQOFtzXVHYdvQ,2331
11
+ prela/core/context.py,sha256=SeIxTW7g_7rdhaf0QFcLGFmgwcC_x2VTWvibDkIF8gA,6860
12
+ prela/core/replay.py,sha256=eKXHl4oHxFa949NrbSSSSLQOQuM2HqZf4MifmvPVCSg,13453
13
+ prela/core/sampler.py,sha256=d8IctOn1q_q7yIv1iRk4iZ2cN3K18rmUVg38GHNdVnk,5210
14
+ prela/core/span.py,sha256=CDEygcSQFb9RzXEjU4qPFrAE8XOJsS38XJnIP3nwUw0,10431
15
+ prela/core/tracer.py,sha256=3zlLDxHvjGh4G38rwTtthrvraZSGv3S4h0FNm7pFK4Y,15444
16
+ prela/evals/__init__.py,sha256=h_g4KBrJsj2B3ksyphvkwOUDW8a_-E3ZwxKw-B_TyGs,2400
17
+ prela/evals/case.py,sha256=402Oeik-uMDsGrlPVIoEXqD9jvRDaJmnBS2riEauj4w,11751
18
+ prela/evals/runner.py,sha256=wybEtGwwJwlTO0SLYyRfbw3aAdb6fzC2MyQqL2LG-_4,18641
19
+ prela/evals/suite.py,sha256=SqOmgCdJ5uGlcaUQLB00JXTiqGx8FmX2Nfzc-8DbgQI,9495
20
+ prela/evals/assertions/README.md,sha256=_qf2qpVAXdYroZB5X7_jSpU9pJDQRu8kFC34u8cG1KI,13294
21
+ prela/evals/assertions/__init__.py,sha256=u5cVBFAD6_JuRJLaT0aULQsZPVlgX2zLf4Ue8Jj6wAg,2294
22
+ prela/evals/assertions/base.py,sha256=DaONTd36slQmQzAMatKs64e5yXEWPAjUajewGn3IGi8,2613
23
+ prela/evals/assertions/multi_agent.py,sha256=CNurtcVQj3XmT5UKj5uuAck6NL8Se5CAPZToTmTaw3M,20778
24
+ prela/evals/assertions/semantic.py,sha256=QDAzlKYEKgmJJydnaijIsu4uGmdbM-plWouSyHjaEtM,7573
25
+ prela/evals/assertions/structural.py,sha256=w2kX4Be6DQzwJmuu7mgKIfqtgIE5RA021Yh1_gA0YTI,14531
26
+ prela/evals/assertions/tool.py,sha256=KMQKhdOo3YdBtW8xzvsAPz5DgnIOXOp0HETKpxzuNko,13197
27
+ prela/evals/n8n/__init__.py,sha256=kPGK8dWT2Wd2ALEo3qcq9tDCpQfz0fS9zeD-3aubU4E,1947
28
+ prela/evals/n8n/assertions.py,sha256=Zkwq2Um1GtXwiStNzhl9oR7NzjZ1M65v1EcCrH_JcRk,14125
29
+ prela/evals/n8n/runner.py,sha256=VjAd0k32ID7e8qBIg0cuZhMIZiMBRlOW9aHCXgTK-1w,17895
30
+ prela/evals/reporters/README.md,sha256=9vymT5kdokQgtHEJo-TjdMWpqpGsfxKZAyBuoPt9g9U,4014
31
+ prela/evals/reporters/__init__.py,sha256=zxNrVXVhAzHyz-cOKBDwflYdjLzTVCgpY-m-g0hlR6k,982
32
+ prela/evals/reporters/console.py,sha256=VFyPZHOs4oWTKiyUpmExqK_Gj_85gPRZF0Cf0wqK7uQ,9481
33
+ prela/evals/reporters/json.py,sha256=UDEEwAmA7NxfJNOoWD7KougYfkDjdXQt4M6bWRvcarg,6089
34
+ prela/evals/reporters/junit.py,sha256=FFacYKZUHDqVnps9_sDzoYc6EyMRvTGy_KplGnj9DJI,9896
35
+ prela/exporters/__init__.py,sha256=Xnf0HXcRflYJVU77Wox8uLadEk65hvfbQUcbPFRR3ec,718
36
+ prela/exporters/base.py,sha256=pYE_EjxOG50T8G3g8_izFLhCc_WHnSk_wnSjnArFZmk,5763
37
+ prela/exporters/console.py,sha256=wJ03MXeuuGAfk-EjFYwURMeEnkOK7B-aJ-AftiQOxkU,14860
38
+ prela/exporters/file.py,sha256=cOmp2AS2FPjY7dIGW8qdj4TMxkILHEepf6Z4YYol5ug,11148
39
+ prela/exporters/http.py,sha256=QCwR6sTNOKZMo9rD9Pg5VoCL-8oiWNUMfHM9EAFl7Po,13238
40
+ prela/exporters/multi.py,sha256=TvgXn7A37YNjhrKxYJhcwUoyCuDU7cp7mJdP445hs1c,4769
41
+ prela/exporters/otlp.py,sha256=GOtG14kxV9pqoE_vGOTAqYwtn7PCDSzTIfo7xcpjrHo,12647
42
+ prela/instrumentation/ANTHROPIC.md,sha256=_iz2zEXKD6BHNOz_l6X1dZUs11FHCmGc3dgpOcNglwU,8356
43
+ prela/instrumentation/LANGCHAIN.md,sha256=asWc7T-RQ1FFar4UnJW2ilaDqqU9N03bZs5t8hc-t3c,14115
44
+ prela/instrumentation/OPENAI.md,sha256=XniTRdY-ubqywyBHnmSJKrwodaCmJB-pvOZMDMA7c7E,2031
45
+ prela/instrumentation/__init__.py,sha256=ebysTgITVWnz36w3a3Xu0NNqoFCoNo0Ybf4bW55lLaE,1392
46
+ prela/instrumentation/anthropic.py,sha256=0l-Omqbc72rhT-fVnALrNyWGa9IG7NLJaeMBxdUZIg0,51582
47
+ prela/instrumentation/auto.py,sha256=yUoN4DvC6ctxPtKcx1id84YiHYI7X-0K9lRH8-bU0dg,4379
48
+ prela/instrumentation/base.py,sha256=W7u_Lohj8oP82qdnLMTflZ9bM6xBICiRF75IJvbau4I,15546
49
+ prela/instrumentation/langchain.py,sha256=QCiiW46d2iY2lpwzXe77KIR7papx0w-wGpkZjrCZ7Z0,35006
50
+ prela/instrumentation/llamaindex.py,sha256=R8n3CyzPiFiI-IMbTNIPInjmYg5Ygftz9THqBEbbcRY,25882
51
+ prela/instrumentation/openai.py,sha256=vPZePAF1fn387MCVnKr0aogB5CzeXaVXNZxy4kymIyI,42450
52
+ prela/instrumentation/multi_agent/__init__.py,sha256=P1vFzGUoqv4wkAvFlRDQCyRV2rXVF3rSDtRr0wHMNfE,1426
53
+ prela/instrumentation/multi_agent/autogen.py,sha256=Fk-DsXPxFfojefInc8bZHut0pnwNn2e7mI45anSB5LY,14326
54
+ prela/instrumentation/multi_agent/crewai.py,sha256=BnqeSCC6l-PK2KeM-n-eYiebLakufMYl47mO1hziETM,14831
55
+ prela/instrumentation/multi_agent/langgraph.py,sha256=9TLn9LV0sPMiVL2U5Sfhc20sI4z8v5nabEmV1H4YQu4,11495
56
+ prela/instrumentation/multi_agent/models.py,sha256=Auhu6Us64ZDzGx36SpdcIb7ZbkW2Tt6MPjojGe2rH6k,5468
57
+ prela/instrumentation/multi_agent/swarm.py,sha256=2SlAunxgkAWyfuapiP28iyhJ-g_kv6Q9kGVB5pjDNSc,8396
58
+ prela/instrumentation/n8n/__init__.py,sha256=D8H7VPzS0rDxuPk4jenbwfcEYpkO8kI2L74JBmwcHog,1666
59
+ prela/instrumentation/n8n/code_node.py,sha256=n7eSstB6RveJFwgvzLO4OZH5QPk2HEWiJAIdJ0439es,18155
60
+ prela/instrumentation/n8n/models.py,sha256=WeFDactYqhfLVHb3RN8lH5gPs_aIfpDdTFynZbB6lwg,12508
61
+ prela/instrumentation/n8n/webhook.py,sha256=bW2jgH7URN8Muj8k9gB8ZY-6rOoUgfx39K4A7wO9GYM,16222
62
+ prela/replay/__init__.py,sha256=0iy9aaLNUydq5BW7-xp6TxZUJbkj_l4-9KZlmZAGwiQ,797
63
+ prela/replay/comparison.py,sha256=ktLH6rgv0QogpBK1xr2QyK3aB7C0RcMDhuuyjMzVl2o,13292
64
+ prela/replay/engine.py,sha256=XHbo7yy-uK7y-RX7aHK6c57MznG8_WmB8pd3F-l-hNQ,44059
65
+ prela/replay/loader.py,sha256=v0yuyqIhU88zeDglDhlhz7VTC74E7TCUJ2pjOwKuFIE,6584
66
+ prela/replay/result.py,sha256=Ba9-gRfk8NwPkt0wicnCIyQObzo7jjyXBhxp5pCNN5c,6764
67
+ prela-0.1.0.dist-info/METADATA,sha256=0rDIcF6nRt66CRT_oVVAUzqIQTh2KFVmr21LXrsBh2E,10140
68
+ prela-0.1.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
69
+ prela-0.1.0.dist-info/entry_points.txt,sha256=PIW08EOMSTLxLC0lgXbFPkIWA1CBvX-Tgrjog3xOfVc,49
70
+ prela-0.1.0.dist-info/licenses/LICENSE,sha256=DqXvznM0bfoaYyiS8tVWoc15N1lAFF5LDrhhSDkQQTk,10763
71
+ prela-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ prela = prela.contrib.cli:main
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 Prela Contributors
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.