mirror of
https://github.com/google/adk-docs.git
synced 2026-09-14 16:16:59 +08:00
2c385b98ab
The memory docs and the express-mode weather agent notebook referenced `adk.tools.preload_memory_tool.PreloadMemoryTool()`, which raises `AttributeError: module 'google.adk.tools' has no attribute 'preload_memory_tool'` because the submodule is not exposed via the package's lazy `__getattr__`. Use the documented public API `from google.adk.tools import preload_memory` and pass the `preload_memory` instance directly, consistent with how the sibling `load_memory` tool is shown in the same page. Fixes #1771 Co-authored-by: Kristopher Overholt <koverholt@google.com>