From 490baf6be416e5460986e960315c33cc861fcb07 Mon Sep 17 00:00:00 2001 From: Braelyn Boynton Date: Tue, 2 Apr 2024 18:36:24 -0700 Subject: [PATCH] Release version (#140) * use drilldown route for session view * update package version * docstring --- agentops/__init__.py | 20 ++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/agentops/__init__.py b/agentops/__init__.py index 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.toml index 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="areibman@gmail.com" }, { name="Shawn Qiu", email="siyangqiu@gmail.com" },