-
Hello, Is it possible to run Sequential Agents or Agents without user question? The agent should starting working immediately on the task as soon as it starts, or implementing a sleep function. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Could you elaborate? Maybe you could provide a concrete example or a minimal agent snippet? |
Beta Was this translation helpful? Give feedback.
-
@a-ml I believe you are referring to adk cli or web, where the first input is expected from the user, whereas what you want is for the sequential agent to start running without user input https://github.com/google/adk-python/blob/main/src/google/adk/cli/cli.py#L85. I think cli and web have those limitations. You'd have to implement a custom |
Beta Was this translation helpful? Give feedback.
@a-ml I believe you are referring to adk cli or web, where the first input is expected from the user, whereas what you want is for the sequential agent to start running without user input https://github.com/google/adk-python/blob/main/src/google/adk/cli/cli.py#L85.
I think cli and web have those limitations. You'd have to implement a custom
runner
andsession
and run them in awhile True
loop. Have a look at the tutorial - Agent Team (https://google.github.io/adk-docs/tutorials/agent-team/) which creates a customrunner
andsession