Files
Gary Zavaleta 2c385b98ab docs(memory): use public preload_memory tool API in examples (#1804)
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>
2026-07-07 14:42:00 -05:00
..