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

[Feature] Better ErrorEvents #155

Closed siyangqiu closed 5 months ago

siyangqiu commented 5 months ago

📥 Pull Request

📘 Description We are currently not recording the error types anywhere and instead loading it into the details field. This change makes use of the error types field and automatically captures stack traces.

Need recommendations for names for the Langchain handler!

@HowieG, are all of the fields in ErrorEvent sent to the API server? Is there a way for us to create an exceptions field that auto populates the error_type and details fields (if they aren't provided)?

siyangqiu commented 5 months ago

Howard is doing a better version