google adk - memory bank we can use to store our agentic application
With memorybank we can store user conversation and these conversations are stored based on app_name and user_id. Another important point to note is we need both ImMorySessionService and VertexAiMemoryBankService. import asyncio import os from google import adk from google . adk . agents . callback_context import CallbackContext from google . adk . memory import VertexAiMemoryBankService from google . adk . sessions import InMemorySessionService from google . adk . tools . preload_memory_tool import PreloadMemoryTool from google . genai import types os . environ [ "GOOGLE_GENAI_USE_ENTERPRISE" ] = "TRUE" os . environ [ "GOOGLE_CLOUD_PROJECT" ] = "project-xxxxxxxx" os . environ [ "GOOGLE_CLOUD_LOCATION" ] = "australia-southeast1" APP_NAME = "APP_NAME" # Memories are scoped per (app_name, user_id), so keep user_id stable # across sessions or the agent won't find earlier memories. USER_ID ...