olca 0.2.49__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.49
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
@@ -97,6 +97,8 @@ import warnings
97
97
 
98
98
  # Suppress the specific UserWarning
99
99
  warnings.filterwarnings("ignore", category=UserWarning, message="The shell tool has no safeguards by default. Use at your own risk.")
100
+ warnings.filterwarnings("ignore", message="Item exceeds size limit", category=UserWarning)
101
+ warnings.filterwarnings("ignore", message="{'keep_alive': True, 'pending_switch_proposals': set(), 'states': {CLIENT: IDLE, SERVER: IDLE}}", category=UserWarning)
100
102
 
101
103
  from langchain_community.tools.shell import ShellTool
102
104
 
@@ -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.49
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.49"
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.49",
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