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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.50
3
+ Version: 0.2.51
4
4
  Summary: A Python package for experimental usage of Langchain and Human-in-the-Loop
5
5
  Home-page: https://github.com/jgwill/olca
6
6
  Author: Jean GUillaume ISabelle
@@ -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()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.50
3
+ Version: 0.2.51
4
4
  Summary: A Python package for experimental usage of Langchain and Human-in-the-Loop
5
5
  Home-page: https://github.com/jgwill/olca
6
6
  Author: Jean GUillaume ISabelle
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "olca"
10
- version = "0.2.50"
10
+ version = "0.2.51"
11
11
 
12
12
  description = "A Python package for experimental usage of Langchain and Human-in-the-Loop"
13
13
  readme = "README.md"
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='olca',
5
- version = "0.2.50",
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