AgentOps-AI / agentops

Python SDK for agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks like CrewAI, Langchain, and Autogen
https://agentops.ai
MIT License
1.77k stars 170 forks source link

Fix: not having langchain no longer raises an unhandled exception #203

Closed siyangqiu closed 4 months ago

siyangqiu commented 4 months ago

📥 Pull Request

📘 Description Langchain inadvertently became a requirement to run agentops, even though it is not a dependency. That was because when we expose the langchain handler through init, langchain code became required. This change handles the exception so that langchain is no longer required