olca 0.2.50__tar.gz → 0.2.51__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {olca-0.2.50 → olca-0.2.51}/PKG-INFO +1 -1
- {olca-0.2.50 → olca-0.2.51}/olca/tracing.py +11 -2
- {olca-0.2.50 → olca-0.2.51}/olca.egg-info/PKG-INFO +1 -1
- {olca-0.2.50 → olca-0.2.51}/pyproject.toml +1 -1
- {olca-0.2.50 → olca-0.2.51}/setup.py +1 -1
- {olca-0.2.50 → olca-0.2.51}/LICENSE +0 -0
- {olca-0.2.50 → olca-0.2.51}/README.md +0 -0
- {olca-0.2.50 → olca-0.2.51}/olca/__init__.py +0 -0
- {olca-0.2.50 → olca-0.2.51}/olca/fusewill_cli.py +0 -0
- {olca-0.2.50 → olca-0.2.51}/olca/fusewill_utils.py +0 -0
- {olca-0.2.50 → olca-0.2.51}/olca/olcacli.py +0 -0
- {olca-0.2.50 → olca-0.2.51}/olca/olcahelper.py +0 -0
- {olca-0.2.50 → olca-0.2.51}/olca/utils.py +0 -0
- {olca-0.2.50 → olca-0.2.51}/olca.egg-info/SOURCES.txt +0 -0
- {olca-0.2.50 → olca-0.2.51}/olca.egg-info/dependency_links.txt +0 -0
- {olca-0.2.50 → olca-0.2.51}/olca.egg-info/entry_points.txt +0 -0
- {olca-0.2.50 → olca-0.2.51}/olca.egg-info/requires.txt +0 -0
- {olca-0.2.50 → olca-0.2.51}/olca.egg-info/top_level.txt +0 -0
- {olca-0.2.50 → olca-0.2.51}/setup.cfg +0 -0
@@ -11,6 +11,7 @@ class TracingManager:
|
|
11
11
|
def __init__(self, config):
|
12
12
|
self.config = config
|
13
13
|
self.handlers = []
|
14
|
+
self.langfuse = None
|
14
15
|
self.initialize_tracing()
|
15
16
|
|
16
17
|
def initialize_tracing(self):
|
@@ -34,8 +35,8 @@ class TracingManager:
|
|
34
35
|
os.environ["LANGCHAIN_TRACING_V2"] = "true"
|
35
36
|
|
36
37
|
def _setup_langfuse(self):
|
37
|
-
langfuse = initialize_langfuse()
|
38
|
-
if not langfuse:
|
38
|
+
self.langfuse = initialize_langfuse()
|
39
|
+
if not self.langfuse:
|
39
40
|
print("Warning: Missing Langfuse environment variables")
|
40
41
|
return None
|
41
42
|
|
@@ -43,3 +44,11 @@ class TracingManager:
|
|
43
44
|
|
44
45
|
def get_callbacks(self):
|
45
46
|
return self.handlers if self.handlers else None
|
47
|
+
|
48
|
+
def flush(self):
|
49
|
+
if self.langfuse:
|
50
|
+
self.langfuse.flush()
|
51
|
+
|
52
|
+
def shutdown(self):
|
53
|
+
if self.langfuse:
|
54
|
+
self.langfuse.shutdown()
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name='olca',
|
5
|
-
version = "0.2.
|
5
|
+
version = "0.2.51",
|
6
6
|
author='Jean GUillaume ISabelle',
|
7
7
|
author_email='jgi@jgwill.com',
|
8
8
|
description='A Python package for experimenting with Langchain agent and interactivity in Terminal modalities.',
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|