Skip to content
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
5 changes: 5 additions & 0 deletions agentops/instrumentation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ def get_instance(self) -> BaseInstrumentor:
class_name="GoogleGenerativeAIInstrumentor",
provider_import_name="google.genai",
),
InstrumentorLoader(
module_name="agentops.instrumentation.ag2",
class_name="AG2Instrumentor",
provider_import_name="autogen",
),
]


Expand Down
17 changes: 17 additions & 0 deletions agentops/instrumentation/ag2/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""AG2 Instrumentation for AgentOps

This module provides instrumentation for AG2 (AutoGen), adding telemetry to track agent
interactions, conversation flows, and tool usage while focusing on summary-level data rather
than individual message exchanges.
"""

# Version string and package info
LIBRARY_NAME = "ag2"
LIBRARY_VERSION = "0.3.2" # Update based on actual version requirement

Check warning on line 10 in agentops/instrumentation/ag2/__init__.py

View check run for this annotation

Codecov / codecov/patch

agentops/instrumentation/ag2/__init__.py#L9-L10

Added lines #L9 - L10 were not covered by tests

from typing import Collection
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor

Check warning on line 13 in agentops/instrumentation/ag2/__init__.py

View check run for this annotation

Codecov / codecov/patch

agentops/instrumentation/ag2/__init__.py#L12-L13

Added lines #L12 - L13 were not covered by tests

from agentops.instrumentation.ag2.instrumentor import AG2Instrumentor

Check warning on line 15 in agentops/instrumentation/ag2/__init__.py

View check run for this annotation

Codecov / codecov/patch

agentops/instrumentation/ag2/__init__.py#L15

Added line #L15 was not covered by tests

__all__ = ["AG2Instrumentor"]

Check warning on line 17 in agentops/instrumentation/ag2/__init__.py

View check run for this annotation

Codecov / codecov/patch

agentops/instrumentation/ag2/__init__.py#L17

Added line #L17 was not covered by tests
Loading
Loading