Skip to content

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

Make legacy ErrorEvent / ToolEvent part of public API. (#823)

Travis Dent6a0d3e19a6d0
diff --git a/agentops/__init__.py b/agentops/__init__.py
index 64f588fa..25a6dcf1 100755
--- a/agentops/__init__.py
+++ b/agentops/__init__.py
@@ -4,6 +4,7 @@ from .client import Client
from .sdk.commands import record as sdk_record, start_span as sdk_start_span, end_span as sdk_end_span
from .semconv.span_kinds import SpanKind
import agentops.legacy as legacy
+from agentops.legacy import ErrorEvent, ToolEvent
# Client global instance; one per process runtime
_client = Client()