feat: Auto-enable Google ADK integration in braintrust package#13
Merged
AbhiPrasad merged 7 commits intomainfrom Feb 27, 2026
Merged
feat: Auto-enable Google ADK integration in braintrust package#13AbhiPrasad merged 7 commits intomainfrom
AbhiPrasad merged 7 commits intomainfrom
Conversation
3 tasks
0424516 to
a20371d
Compare
a20371d to
93b84e6
Compare
ibolmo
approved these changes
Feb 26, 2026
| _extract_model_name, | ||
| _is_patched, | ||
| _omit, | ||
| _serialize_config, |
Contributor
There was a problem hiding this comment.
i wouldn't re-import private funcs
This was referenced Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR deprecates the
braintrust-adkpackage in favour of using auto instrumentation with thebraintrustpackage.AI Summary
This branch moves the Google ADK integration from the standalone
braintrust-adkPyPI package (integrations/adk-py/) into the mainbraintrustpackage, following the same pattern as Agno, Google GenAI, Claude Agent SDK, and other integrations.What changed
New files in main package (
py/):py/src/braintrust/wrappers/adk/__init__.py— ADK wrapper module withsetup_adk,wrap_agent,wrap_runner,wrap_flow,wrap_mcp_toolpy/src/braintrust/wrappers/adk/test_adk.py— Main integration tests (moved fromintegrations/adk-py/)py/src/braintrust/wrappers/adk/test_adk_mcp_tool.py— MCP tool tracing tests (moved fromintegrations/adk-py/)py/src/braintrust/wrappers/adk/test_auto_adk.py— Auto-instrument verification scriptpy/examples/adk/— Example scripts for auto and manual patchingpy/src/braintrust/wrappers/cassettes/Modified files:
py/src/braintrust/auto.py— Addedadk: bool = Trueparameter toauto_instrument()and_instrument_adk()functionpy/noxfile.py— Addedtest_google_adknox session with version matrix (latest, 1.14.1)py/Makefile— Addedgoogle-adktoinstall-optionalIntegration package (
integrations/adk-py/) — now a deprecation shim:src/braintrust_adk/__init__.py— Replaced with a thin shim that emitsDeprecationWarningand re-exports only the public API frombraintrust.wrappers.adkpyproject.toml— Bumped to 0.4.0, markedDevelopment Status :: 7 - Inactive, requiresbraintrust>=0.6.0README.md— Added deprecation notice with migration instructionstest_reexports.py— verifies the public API re-exports and deprecation warningTest fixes for cross-version compatibility
ANYmatcher forlive_connect_config(structure differs between ADK versions)model_version)avg_logprobs(only present in ADK >= 1.15.0)test_setup_adk_patches_mcp_tool— replaced fragilesys.modulesmanipulation withpatch("google.adk.tools.mcp_tool.mcp_tool")Migration Guide:
braintrust-adktobraintrustBefore (old)
After (new)
Option 1: Auto-instrument (recommended)
Option 2: Explicit setup
What stays the same
setup_adk,wrap_agent,wrap_runner,wrap_flow,wrap_mcp_tool) work identicallyfrom braintrust_adk import setup_adkimports still work but emit aDeprecationWarningWhat to update
braintrust_adktobraintrust.wrappers.adk(or useauto_instrument())braintrust-adkfrom your dependencies —braintrustnow includes ADK support with no extra package