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
Apply @check_init to decorators (#260)
Shawn Qiuf5a97303211e
diff --git a/agentops/__init__.py b/agentops/__init__.pyindex 1335f6a9..e8600cce 100755--- a/agentops/__init__.py+++ b/agentops/__init__.py@@ -184,6 +184,16 @@ def set_tags(tags: List[str]):Client().set_tags(tags)+@check_init+def record_function(event_name: str):+ return decorators.record_function(event_name)+++@check_init+def track_agent(name: Union[str, None] = None):+ return agent.track_agent(name)++def get_api_key() -> str:return Client().api_keydiff --git a/pyproject.toml b/pyproject.tomlindex 4324f5c0..5d00ec05 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "agentops"-version = "0.2.3"+version = "0.2.4"authors = [{ name="Alex Reibman", email="[email protected]" },{ name="Shawn Qiu", email="[email protected]" },