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: not having langchain no longer raises an unhandled exception (#203)
Shawn Qiuc614d6468644
diff --git a/agentops/__init__.py b/agentops/__init__.pyindex 1c2d4dfa..efbfd365 100755--- a/agentops/__init__.py+++ b/agentops/__init__.py@@ -9,8 +9,10 @@ from .enums import Modelsfrom .decorators import record_functionfrom .agent import track_agentfrom .log_config import set_logging_level_info, set_logging_level_critial-from .langchain_callback_handler import LangchainCallbackHandler, AsyncLangchainCallbackHandler-+try:+ from .langchain_callback_handler import LangchainCallbackHandler, AsyncLangchainCallbackHandler+except ModuleNotFoundError:+ passdef init(api_key: Optional[str] = None,parent_key: Optional[str] = None,diff --git a/pyproject.toml b/pyproject.tomlindex 49250903..a81826f8 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "agentops"-version = "0.1.10"+version = "0.1.11"authors = [{ name="Alex Reibman", email="[email protected]" },{ name="Shawn Qiu", email="[email protected]" },