Runner override in adk web to use custom session and memory services #1714
|
Hi, my question is simple: Is there a way to use a custom session and memory service (i.e. VertexAiRagMemoryService) when using "adk web" as UI interface? |
Replies: 1 comment
|
You can configure these services through For export GOOGLE_CLOUD_PROJECT="your-project"
export GOOGLE_CLOUD_LOCATION="your-rag-corpus-location"
adk web ./my_agents \
--session_service_uri="sqlite:///./sessions.db" \
--memory_service_uri="rag://YOUR_RAG_CORPUS_ID"Use the corpus ID after For your own session or memory class, put a Configuring the memory service makes it available to the agent; memory ingestion and retrieval still need to be part of your application's flow. |
You can configure these services through
adk webwithout overriding itsRunner.For
VertexAiRagMemoryService, the current CLI provides arag://memory URI:Use the corpus ID after
rag://, not the fullprojects/.../ragCorpora/...resource name. The registered factory constructs that resource name from the project, location, and ID. Google Cloud credentials and corpus access must already be configured.For your own session or memory class, put a
services.pyfile directly…