Skip to content

Commit 596e979

Browse files
committed
Cleanup
1 parent 8732beb commit 596e979

99 files changed

Lines changed: 412 additions & 433 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

agentops/instrumentation/__init__.py

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,28 @@ class InstrumentorConfig(TypedDict):
4747
# Configuration for supported LLM providers
4848
PROVIDERS: dict[str, InstrumentorConfig] = {
4949
"openai": {
50-
"module_name": "agentops.instrumentation.openai",
50+
"module_name": "agentops.instrumentation.providers.openai",
5151
"class_name": "OpenAIInstrumentor",
5252
"min_version": "1.0.0",
5353
},
5454
"anthropic": {
55-
"module_name": "agentops.instrumentation.anthropic",
55+
"module_name": "agentops.instrumentation.providers.anthropic",
5656
"class_name": "AnthropicInstrumentor",
5757
"min_version": "0.32.0",
5858
},
5959
"ibm_watsonx_ai": {
60-
"module_name": "agentops.instrumentation.ibm_watsonx_ai",
60+
"module_name": "agentops.instrumentation.providers.ibm_watsonx_ai",
6161
"class_name": "IBMWatsonXInstrumentor",
6262
"min_version": "0.1.0",
6363
},
6464
"google.genai": {
65-
"module_name": "agentops.instrumentation.google_genai",
65+
"module_name": "agentops.instrumentation.providers.google_genai",
6666
"class_name": "GoogleGenAIInstrumentor",
6767
"min_version": "0.1.0",
6868
"package_name": "google-genai", # Actual pip package name
6969
},
7070
"mem0": {
71-
"module_name": "agentops.instrumentation.mem0",
71+
"module_name": "agentops.instrumentation.providers.mem0",
7272
"class_name": "Mem0Instrumentor",
7373
"min_version": "0.1.0",
7474
"package_name": "mem0ai",
@@ -78,7 +78,7 @@ class InstrumentorConfig(TypedDict):
7878
# Configuration for utility instrumentors
7979
UTILITY_INSTRUMENTORS: dict[str, InstrumentorConfig] = {
8080
"concurrent.futures": {
81-
"module_name": "agentops.instrumentation.concurrent_futures",
81+
"module_name": "agentops.instrumentation.utilities.concurrent_futures",
8282
"class_name": "ConcurrentFuturesInstrumentor",
8383
"min_version": "3.7.0", # Python 3.7+ (concurrent.futures is stdlib)
8484
"package_name": "python", # Special case for stdlib modules
@@ -88,21 +88,35 @@ class InstrumentorConfig(TypedDict):
8888
# Configuration for supported agentic libraries
8989
AGENTIC_LIBRARIES: dict[str, InstrumentorConfig] = {
9090
"crewai": {
91-
"module_name": "agentops.instrumentation.crewai",
91+
"module_name": "agentops.instrumentation.agentic.crewai",
9292
"class_name": "CrewAIInstrumentor",
9393
"min_version": "0.56.0",
9494
},
95-
"autogen": {"module_name": "agentops.instrumentation.ag2", "class_name": "AG2Instrumentor", "min_version": "0.3.2"},
95+
"autogen": {
96+
"module_name": "agentops.instrumentation.agentic.ag2",
97+
"class_name": "AG2Instrumentor",
98+
"min_version": "0.3.2",
99+
},
96100
"agents": {
97-
"module_name": "agentops.instrumentation.openai_agents",
101+
"module_name": "agentops.instrumentation.agentic.openai_agents",
98102
"class_name": "OpenAIAgentsInstrumentor",
99103
"min_version": "0.0.1",
100104
},
101105
"google.adk": {
102-
"module_name": "agentops.instrumentation.google_adk",
106+
"module_name": "agentops.instrumentation.agentic.google_adk",
103107
"class_name": "GoogleADKInstrumentor",
104108
"min_version": "0.1.0",
105109
},
110+
"agno": {
111+
"module_name": "agentops.instrumentation.agentic.agno",
112+
"class_name": "AgnoInstrumentor",
113+
"min_version": "0.1.0",
114+
},
115+
"smolagents": {
116+
"module_name": "agentops.instrumentation.agentic.smolagents",
117+
"class_name": "SmolAgentsInstrumentor",
118+
"min_version": "1.0.0",
119+
},
106120
}
107121

108122
# Combine all target packages for monitoring

agentops/instrumentation/ag2/__init__.py renamed to agentops/instrumentation/agentic/ag2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
LIBRARY_VERSION = _library_info.version
1414

1515
# Import after defining constants to avoid circular imports
16-
from agentops.instrumentation.ag2.instrumentor import AG2Instrumentor # noqa: E402
16+
from agentops.instrumentation.agentic.ag2.instrumentor import AG2Instrumentor # noqa: E402
1717

1818
__all__ = ["AG2Instrumentor", "LIBRARY_NAME", "LIBRARY_VERSION"]

agentops/instrumentation/ag2/instrumentor.py renamed to agentops/instrumentation/agentic/ag2/instrumentor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
create_span,
2121
SpanAttributeManager,
2222
)
23-
from agentops.instrumentation.ag2 import LIBRARY_NAME, LIBRARY_VERSION
23+
from agentops.instrumentation.agentic.ag2 import LIBRARY_NAME, LIBRARY_VERSION
2424
from agentops.semconv.message import MessageAttributes
2525
from agentops.semconv.span_attributes import SpanAttributes
2626
from agentops.semconv.agent import AgentAttributes
File renamed without changes.

agentops/instrumentation/agno/attributes/__init__.py renamed to agentops/instrumentation/agentic/agno/attributes/__init__.py

File renamed without changes.
File renamed without changes.

agentops/instrumentation/agno/attributes/metrics.py renamed to agentops/instrumentation/agentic/agno/attributes/metrics.py

File renamed without changes.
File renamed without changes.
File renamed without changes.

agentops/instrumentation/agno/attributes/workflow.py renamed to agentops/instrumentation/agentic/agno/attributes/workflow.py

File renamed without changes.

0 commit comments

Comments
 (0)