Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions agentops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
# Import validation functions
from agentops.validation import validate_trace_spans, print_validation_summary, ValidationError

# Import callback handlers for external integrations
from agentops.integration.callbacks.litellm import LiteLLMCallbackHandler

# Thread-safe client management
_client_lock = threading.Lock()
_client = None
Expand Down Expand Up @@ -485,4 +488,6 @@ def extract_key_from_attr(attr_value: str) -> str:
"validate_trace_spans",
"print_validation_summary",
"ValidationError",
# Callback handlers for external integrations
"LiteLLMCallbackHandler",
]
9 changes: 9 additions & 0 deletions agentops/integration/callbacks/litellm/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""
LiteLLM callback handler for AgentOps.

This module provides the LiteLLM callback handler for AgentOps tracing and monitoring.
"""

from agentops.integration.callbacks.litellm.callback import LiteLLMCallbackHandler

__all__ = ["LiteLLMCallbackHandler"]
Loading