From 786f455c67e35bcb6cfc8808bce952e5b18f258d Mon Sep 17 00:00:00 2001 From: Braelyn Boynton Date: Fri, 31 May 2024 15:36:24 -0700 Subject: [PATCH 1/2] fixed bug where dupe client was being created in constructor --- agentops/client.py | 3 +++ agentops/partners/autogen_logger.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/agentops/client.py b/agentops/client.py index 9e72740d..f47aa2d7 100644 --- a/agentops/client.py +++ b/agentops/client.py @@ -97,6 +97,8 @@ def __init__( os.environ.get("AGENTOPS_ENV_DATA_OPT_OUT", "False").lower() == "true" ) + self.config = None + try: self.config = Configuration( api_key=api_key, @@ -142,6 +144,7 @@ def _check_for_partner_frameworks( from .partners.autogen_logger import AutogenLogger autogen.runtime_logging.start(logger=AutogenLogger()) + self.add_tags(["autogen"]) except ImportError: pass except Exception as e: diff --git a/agentops/partners/autogen_logger.py b/agentops/partners/autogen_logger.py index feba6844..4080d792 100644 --- a/agentops/partners/autogen_logger.py +++ b/agentops/partners/autogen_logger.py @@ -32,7 +32,7 @@ class AutogenLogger(BaseLogger): agent_store: [{"agentops_id": str, "autogen_id": str}] = [] def __init__(self): - agentops.add_tags(["autogen"]) + pass def start(self) -> str: pass From b4380e5373812526fe9370d6100a23a88a49b02a Mon Sep 17 00:00:00 2001 From: Braelyn Boynton Date: Fri, 31 May 2024 15:46:36 -0700 Subject: [PATCH 2/2] version bump --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e2daaa03..d5946fd0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "agentops" -version = "0.2.0" +version = "0.2.1" authors = [ { name="Alex Reibman", email="areibman@gmail.com" }, { name="Shawn Qiu", email="siyangqiu@gmail.com" },