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
Release version (#140)
Braelyn Boynton490baf6be416
diff --git a/agentops/__init__.py b/agentops/__init__.pyindex 0de18b03..7dee8f31 100755--- a/agentops/__init__.py+++ b/agentops/__init__.py@@ -17,6 +17,26 @@ def init(api_key: Optional[str] = None,tags: Optional[List[str]] = None,override=True,auto_start_session=True):+ """+ Initializes the AgentOps singleton pattern.++ Args:++ api_key (str, optional): API Key for AgentOps services. If none is provided, key will+ be read from the AGENTOPS_API_KEY environment variable.+ parent_key (str, optional): Organization key to give visibility of all user sessions the user's organization. If none is provided, key will+ be read from the AGENTOPS_PARENT_KEY environment variable.+ endpoint (str, optional): The endpoint for the AgentOps service. If none is provided, key will+ be read from the AGENTOPS_API_ENDPOINT environment variable. Defaults to 'https://api.agentops.ai'.+ max_wait_time (int, optional): The maximum time to wait in milliseconds before flushing the queue.+ Defaults to 30,000 (30 seconds)+ max_queue_size (int, optional): The maximum size of the event queue. Defaults to 100.+ tags (List[str], optional): Tags for the sessions that can be used for grouping or+ sorting later (e.g. ["GPT-4"]).+ override (bool): Whether to override and LLM calls to emit as events.+ auto_start_session (bool): Whether to start a session automatically when the client is created.+ Attributes:+ """Client(api_key=api_key,parent_key=parent_key,diff --git a/pyproject.toml b/pyproject.tomlindex e36d2560..f3afbe60 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "agentops"-version = "0.1.0-beta.7"+version = "0.1.0"authors = [{ name="Alex Reibman", email="[email protected]" },{ name="Shawn Qiu", email="[email protected]" },