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
fix: order of operations for if statement
Shawn Qiu0f622bcf80d5
diff --git a/agentops/developer_errors.py b/agentops/developer_errors.pyindex 02c3380b..ec808d3d 100644--- a/agentops/developer_errors.py+++ b/agentops/developer_errors.py@@ -13,7 +13,7 @@ class ExceptionHandlerMeta(type):def __new__(cls, name, bases, dct):# Wrap each method with the handle_exceptions decoratorfor method_name, method in dct.items():- if callable(method) and not method_name.startswith("__") or method_name == "__init__":+ if (callable(method) and not method_name.startswith("__")) or method_name == "__init__":dct[method_name] = handle_exceptions(method)return super().__new__(cls, name, bases, dct)