Skip to content

Commit 69ebf9f

Browse files
committed
Session + backwards compat methods (create_agent, record, end_session)
Signed-off-by: Teo <[email protected]>
1 parent 65f46c6 commit 69ebf9f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

agentops/legacy/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,22 @@ def __init__(self, span: Any, token: Any):
2424
self.token = token
2525

2626
def __del__(self):
27+
try:
28+
self.span.end()
29+
except:
30+
pass
31+
32+
def create_agent(self):
33+
pass
34+
35+
def record(self):
36+
pass
37+
38+
def end_session(self):
2739
self.span.end()
2840

2941

42+
3043
def start_session(
3144
tags: Union[Dict[str, Any], List[str], None] = None,
3245
) -> Session:

0 commit comments

Comments
 (0)