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

Reusing `adk run` and `adk web` with custom Runners (and other custom services)

Open ksachdeva opened this issue 6 months ago • 3 comments

Is your feature request related to a problem? Please describe.

I loved the dev specific tools (running via the cli or web) that are part of adk. However, they are good enough for simple agents. Anything that requires reliance on other custom objects (e.g. Session, artificate service, Custom/Extended Runner etc) requires one to write a custom script and thereby not utilizing the dev tools that come built in.

Describe the solution you'd like

While it would be difficult to specific the custom runner or service to use on CLI, refactoring the functions in https://github.com/google/adk-python/blob/main/src/google/adk/cli/cli.py such as run_interactively and run_cli could enable one to directly use them from their custom script (entrypoint).

Describe alternatives you've considered Alternatives require duplication of code

ksachdeva avatar Jun 05 '25 13:06 ksachdeva

I have the same question, if it is possible to debug (adk web) with the custom Runner.

lvcarnevalli avatar Jul 14 '25 22:07 lvcarnevalli

Hi @ksachdeva and thanks to everyone who participated in this thread.

We're currently doing some housekeeping on our issue tracker. Given the rapid pace of development and the number of updates since this was last active, there's a good chance this issue has been resolved in a newer version. To help us keep our backlog focused on current issues, we are closing this as stale.

If you're still facing this problem, could you please update to the very latest version of the library and confirm the issue still exists? If it does, please comment here, and we will be happy to reopen this issue and investigate further.

Thanks for your contribution and understanding!

klateefa avatar Oct 08 '25 05:10 klateefa

Hi @klateefa, I believe this issue is still unresolved. The docs don't cover using adk run and adk web with custom Runners.

b-gran avatar Dec 01 '25 03:12 b-gran