Skip to content
Discussion options

You must be logged in to vote

Response from ADK Answering Agent (experimental, answer may be inaccurate)

TLDR: To automatically advance to the next agent, your orchestrator should use a while loop within its own _run_async_impl method. This keeps the orchestrator in control of the workflow and allows it to call sub-agents sequentially in a single run, rather than ending its execution and waiting for a new user prompt.


Hello! I can see you've put a lot of thought into your ControlWorkflowAgent. Your current approach of updating the state when an agent completes is correct, but the issue you're facing is a matter of control flow.

When your async for event in active_agent.run_async(ctx): loop finishes, the _run_async_impl

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@riturajtiwari
Comment options

Answer selected by riturajtiwari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants