Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dupe client created with autogen #235

Merged
merged 3 commits into from
Jun 1, 2024
Merged
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
3 changes: 3 additions & 0 deletions agentops/client.py
bboynton97 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion agentops/partners/autogen_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]" },
{ name="Shawn Qiu", email="[email protected]" },
Expand Down
Loading