Skip to content

Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI

[Fix] Linting `session.py` (#618)

Pratyush Shuklae499e47c6636
diff --git a/agentops/session.py b/agentops/session.py
index 535bc997..b9f07d20 100644
--- a/agentops/session.py
+++ b/agentops/session.py
@@ -534,7 +534,9 @@ class Session:
"""Update session state on the server"""
if not self.is_running:
return
- with self._lock: # TODO: Determine whether we really need to lock here: are incoming calls coming from other threads?
+
+ # TODO: Determine whether we really need to lock here: are incoming calls coming from other threads?
+ with self._lock:
payload = {"session": self.__dict__}
try: