Repository navigation
Conversation
google.adk.models, memory, artifacts, code_executors, apps, tools.retrieval, a2a.agent and evaluation.simulation resolve their exports in a hand-written module __getattr__ and define no __dir__, so dir() omits 35 public names such as Gemini, Claude, App and InMemoryMemoryService, and Sphinx autodoc leaves them out of the API reference. Give each package the __dir__ that _lazy.accessors builds, sorted(set(globals()) | set(__all__)). Listing a name imports nothing. None of these lazy targets imports pandas, so the freezegun guard in google.adk.plugins is not needed here. Signed-off-by: Christopher Krah <48338417+chrikrah@users.noreply.github.com>
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.
Link to Issue or Description of Change
1. Link to an existing issue
Problem
Eight packages with a hand-written
__getattr__lack__dir__, sodir()and the API reference miss 35 exports,Geminiamong them.Solution
Each gets the
__dir__that_lazy.accessorsbuilds. None loads pandas, so no freezegun guard. As inplugins(9fd6b33),inspect.getmembers()andhelp()without the extra now raise the install hint forClaudeandLiteLlm.Testing Plan
Unit Tests
labs/antigravityand release tests fail on03725e8too.Manual End-to-End (E2E) Tests
The issue's repro now prints nothing.
Checklist
Additional context
I kept each
__getattr__, since_lazy.accessorswould drop four install hints. Is that the split you want?