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
removed import
reibsc411d1016f89
diff --git a/agentops/langchain_callback_handler.py b/agentops/langchain_callback_handler.pyindex 0b542e6f..806fc43b 100644--- a/agentops/langchain_callback_handler.py+++ b/agentops/langchain_callback_handler.py@@ -9,13 +9,14 @@ from agentops import Client as AOClientfrom agentops import Eventfrom tenacity import RetryCallState-from langchain.callbacks.base import BaseCallbackHandler, ChainManagerMixin+from langchain.callbacks.base import BaseCallbackHandlerfrom agentops.helpers import get_ISO_timefrom typing import Any, Dict, List, Optional, Sequenceclass LangchainCallbackHandler(BaseCallbackHandler):+ """Callback handler for Langchain agents."""def __init__(self, api_key: str, tags: List[str] = None):self.ao_client = AOClient(api_key=api_key, tags=tags)