Skip to content

Commit cdcf626

Browse files
committed
code cleanup
1 parent 3dc3d92 commit cdcf626

File tree

21 files changed

+496
-579
lines changed

21 files changed

+496
-579
lines changed

agentops/instrumentation/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class InstrumentorConfig(TypedDict):
8585
"autogen_agentchat": {
8686
"module_name": "agentops.instrumentation.agentic.autogen",
8787
"class_name": "AutoGenInstrumentor",
88-
"min_version": "0.0.1", # Original AutoGen versions are older
88+
"min_version": "0.6.4",
8989
},
9090
"autogen": {
9191
"module_name": "agentops.instrumentation.agentic.ag2",

agentops/instrumentation/agentic/autogen/__init__.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@
1313
LIBRARY_VERSION = _library_info.version
1414

1515
# Import after defining constants to avoid circular imports
16-
from .instrumentor import AutoGenInstrumentor
16+
from .instrumentor import AutoGenInstrumentor # noqa: E402
1717

1818
# Import modular components for advanced users
19-
from .agents import (
19+
from .agents import ( # noqa: E402
2020
BaseChatAgentInstrumentor,
2121
AssistantAgentInstrumentor,
2222
UserProxyAgentInstrumentor,
2323
CodeExecutorAgentInstrumentor,
2424
SocietyOfMindAgentInstrumentor,
2525
)
26-
from .teams import (
26+
from .teams import ( # noqa: E402
2727
RoundRobinGroupChatInstrumentor,
2828
SelectorGroupChatInstrumentor,
2929
SwarmInstrumentor,
3030
)
31-
from .utils import (
31+
from .utils import ( # noqa: E402
3232
AutoGenSpanManager,
3333
extract_agent_attributes,
3434
safe_str,
@@ -41,29 +41,25 @@
4141
__all__ = [
4242
# Main instrumentors
4343
"AutoGenInstrumentor",
44-
4544
# Library info
4645
"LIBRARY_NAME",
4746
"LIBRARY_VERSION",
48-
4947
# Agent instrumentors
5048
"BaseChatAgentInstrumentor",
51-
"AssistantAgentInstrumentor",
49+
"AssistantAgentInstrumentor",
5250
"UserProxyAgentInstrumentor",
5351
"CodeExecutorAgentInstrumentor",
5452
"SocietyOfMindAgentInstrumentor",
55-
5653
# Team instrumentors
5754
"RoundRobinGroupChatInstrumentor",
5855
"SelectorGroupChatInstrumentor",
5956
"SwarmInstrumentor",
60-
6157
# Utilities
6258
"AutoGenSpanManager",
6359
"extract_agent_attributes",
6460
"safe_str",
65-
"safe_extract_content",
61+
"safe_extract_content",
6662
"create_agent_span",
6763
"instrument_async_generator",
6864
"instrument_coroutine",
69-
]
65+
]

agentops/instrumentation/agentic/autogen/agents/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
__all__ = [
1313
"CommonAgentWrappers",
1414
"BaseChatAgentInstrumentor",
15-
"AssistantAgentInstrumentor",
15+
"AssistantAgentInstrumentor",
1616
"UserProxyAgentInstrumentor",
1717
"CodeExecutorAgentInstrumentor",
1818
"SocietyOfMindAgentInstrumentor",
19-
]
19+
]

0 commit comments

Comments
 (0)