77import logging
88from contextlib import contextmanager
99
10- from braintrust .integrations import ADKIntegration , AgnoIntegration , AnthropicIntegration , ClaudeAgentSDKIntegration
10+ from braintrust .integrations import (
11+ ADKIntegration ,
12+ AgentScopeIntegration ,
13+ AgnoIntegration ,
14+ AnthropicIntegration ,
15+ ClaudeAgentSDKIntegration ,
16+ )
1117
1218
1319__all__ = ["auto_instrument" ]
@@ -34,6 +40,7 @@ def auto_instrument(
3440 pydantic_ai : bool = True ,
3541 google_genai : bool = True ,
3642 agno : bool = True ,
43+ agentscope : bool = True ,
3744 claude_agent_sdk : bool = True ,
3845 dspy : bool = True ,
3946 adk : bool = True ,
@@ -54,6 +61,7 @@ def auto_instrument(
5461 pydantic_ai: Enable Pydantic AI instrumentation (default: True)
5562 google_genai: Enable Google GenAI instrumentation (default: True)
5663 agno: Enable Agno instrumentation (default: True)
64+ agentscope: Enable AgentScope instrumentation (default: True)
5765 claude_agent_sdk: Enable Claude Agent SDK instrumentation (default: True)
5866 dspy: Enable DSPy instrumentation (default: True)
5967 adk: Enable Google ADK instrumentation (default: True)
@@ -116,6 +124,8 @@ def auto_instrument(
116124 results ["google_genai" ] = _instrument_google_genai ()
117125 if agno :
118126 results ["agno" ] = _instrument_integration (AgnoIntegration )
127+ if agentscope :
128+ results ["agentscope" ] = _instrument_integration (AgentScopeIntegration )
119129 if claude_agent_sdk :
120130 results ["claude_agent_sdk" ] = _instrument_integration (ClaudeAgentSDKIntegration )
121131 if dspy :
0 commit comments