33from agentops import ActionEvent , LLMEvent , ErrorEvent # type: ignore
44
55import typing
6- from ..types .retrieve_output import RetrieveOutput
76from ..types .session_created import SessionCreated
87from ..types .session_step_stream_chunk import SessionStepStreamChunk
98from ..types .session_step_success import SessionStepSuccess
1413
1514from ..wrappers import wraps_function
1615
16+
1717class WrappedSessionsClient (SessionsClient ):
1818 @wraps_function (SessionsClient .create ) # type: ignore
1919 def create (self , * args , ** kwargs ) -> SessionCreated :
@@ -50,7 +50,7 @@ def generator():
5050 yield chunk
5151
5252 return generator ()
53-
53+
5454 @agentops .record_function (event_name = "step" ) # type: ignore
5555 @wraps_function (SessionsClient .step )
5656 def step (self , * args , ** kwargs ) -> SessionStepSuccess :
@@ -66,10 +66,6 @@ def close(self, *args, **kwargs) -> SessionsCloseResponse:
6666 agentops .end_session ("Success" )
6767 return close_response
6868
69- @agentops .record_function (event_name = "retrieve" ) # type: ignore
70- @wraps_function (SessionsClient .retrieve )
71- def retrieve (self , * args , ** kwargs ) -> RetrieveOutput :
72- return super ().retrieve (* args , ** kwargs )
7369
7470class WrappedAsyncSessionsClient (AsyncSessionsClient ):
7571 @wraps_function (AsyncSessionsClient .create ) # type: ignore
0 commit comments