adk-memory-bank-initializer
adk-memory-bank-initializer
This skill helps you integrate long-term persistence into your AI agent using the Vertex AI Memory Bank. It ensures your agent "remembers" user preferences across sessions.
Usage
Ask Antigravity to:
- "Initialize the memory bank for my agent"
- "Add a persistence callback to my root agent"
- "Set up VertexAiMemoryBankService"
Memory Integration Pattern
The integration involves:
- Service Initialization: Setting up the
VertexAiMemoryBankServicewith the correct project and location. - Persistence Callback: Implementing a defensive
save_session_to_memory_callbackthat runs after every turn. - Agent Configuration: Passing the
memory_serviceto theRunnerorApp. - Tool Selection: Using
LoadMemoryToolandPreloadMemoryToolto manage context recall.
Python Boilerplate
Refer to the included scripts/memory_config.py for the standard implementation pattern.
More from googlecloudplatform/devrel-demos
go-backend-dev
Specialist in implementing robust HTTP services and APIs in Go. Activates for "endpoint", "handler", "API", "server".
41go-reviewer
Expert code reviewer focusing on idiomatic Go, concurrency safety, and clean code principles. Activates for "review", "idiomatic", "refactor".
41go-architect
Expert in Go project scaffolding, standard layout compliance, and dependency management. Activates for "new project", "structure", "layout".
36go-test-expert
Expert in Go testing patterns, table-driven tests, httptest, benchmarking, and fuzzing. Activates for "test", "fail", "benchmark", "debug", "fuzz".
35latest-software-version
>
34go-project-setup
>
26