Commit d3b4bd9
committed
fix: improve error message when beautifulsoup4/lxml not installed for load_web_page
The load_web_page tool requires beautifulsoup4 and lxml, which are
available via the [extensions] optional dependency group. Previously,
calling the tool without these packages installed produced a raw
ModuleNotFoundError, giving no guidance on how to resolve it.
This wraps the deferred imports in try/except to provide a clear,
actionable error message directing users to install the missing
packages with: pip install google-adk[extensions]
Fixes #48521 parent 22fc332 commit d3b4bd9
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
32 | 39 | | |
33 | 40 | | |
34 | 41 | | |
| |||
0 commit comments