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
Python agentagentopsagents-sdkaianthropicautogencost-estimationcrewaievalsevaluation-metricsgroqlangchainllmmistralollamaopenaiopenai-agents
cleanup
Howard Gild125ce34b186
diff --git a/agentops/client.py b/agentops/client.pyindex b9d9613f..0857ed36 100644--- a/agentops/client.py+++ b/agentops/client.py@@ -164,10 +164,9 @@ class Client(metaclass=MetaClient):returns = list(returns)event.returns = returns-- # TODO: If we except this will never get called here- # the dev loses all the useful stuff they would need for debugging- # maybe we could have Error post the supplied event to supabase+ # TODO: If func excepts this will never get called+ # the dev loses all the useful stuff in ActionEvent they would need for debugging+ # we should either record earlier or have Error post the supplied event to supabaseself.record(event)except Exception as e:@@ -203,11 +202,10 @@ class Client(metaclass=MetaClient):if isinstance(returns, tuple):returns = list(returns)+ # TODO: If func excepts this will never get called+ # the dev loses all the useful stuff in ActionEvent they would need for debugging+ # we should either record earlier or have Error post the supplied event to supabaseevent.returns = returns-- # TODO: If we except this will never get called here- # the dev loses all the useful stuff they would need for debugging- # maybe we could have Error post the supplied event to supabaseself.record(event)except Exception as e: