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

Make run_async start without a new message from the user

Open DenisStefanAndrei opened this issue 1 year ago • 4 comments

Hello. I want to implement human in the loop for my Parallel Agents. When a tool called human_input_request is called I break from the runner and save the function call for a later execution. When I execute the function I add the event to the session just like the runner would but I can t find a way to start the runner without providing a new message from the user which in my case doesn't make sense, I just want to run the runner where it left of.

TL;DR: Is there a way to run_async the runner without a new message from the user?

DenisStefanAndrei avatar May 30 '25 10:05 DenisStefanAndrei

When you executed the function, you mean you send human reponses back to the runner right?

wyf7107 avatar May 30 '25 18:05 wyf7107

+1

paward35 avatar Jul 19 '25 01:07 paward35

+1

pavan-moe avatar Aug 29 '25 17:08 pavan-moe

Hi @DenisStefanAndrei , @pavan-moe , this is now supported if you have the invocation_id that the runner last ran at. See: https://google.github.io/adk-docs/runtime/resume/

DeanChensj avatar Oct 24 '25 03:10 DeanChensj