adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Adk web tool hardwires specific memory services

Open cbrew opened this issue 1 year ago • 2 comments

In the fastapi web tool the possible URL prefixes for the url that defines the memory service are hard wired to InMemoryMemoryService, VertexAiMemoryBankService, and VertexAiRagMemoryService. This leaves no space for injecting a customized memory service of the user's design, so adk web debugging is inaccessible.

A possible solution is to provide a mechanism that allows the script to dynamically import an arbitrary instance of BaseMemory service. If this is OK from a security standpoint, it would fix the issue.

Other options include a more general plug in architecture.

The same issue arises for the artifact service and the session service.

cbrew avatar Sep 05 '25 14:09 cbrew

  • i need it for artifact service

Keydol avatar Sep 11 '25 12:09 Keydol

Hi @cbrew and @Keydol , this is now supported with service_registry, check out https://github.com/google/adk-python/blob/8dd5a79b29816bb11b559ed61b4d6188088f62ad/src/google/adk/cli/service_registry.py#L204-L219 for example

DeanChensj avatar Nov 06 '25 18:11 DeanChensj