You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SequentialAgent doesn't execute sub agents after the first one. #573
I tried to run the SequentialAgent example in the adk tutorial.
root_agent = SequentialAgent(
name="CodePipelineAgent",
sub_agents=[code_writer_agent, code_reviewer_agent, code_refactorer_agent],
description="Executes a sequence of code writing, reviewing, and refactoring."
)
The code above doesn't continue after code_writer_agent and I dont see anything except 'generated_code' from the first agent in session.state.
If I run them manually as below, then everything works.
await call_agent_async(
query,
Runner(agent=code_writer_agent, app_name=APP_NAME, session_service=session_service),
USER_ID,
SESSION_ID
)
await call_agent_async(
"", # No new user query, just use state
Runner(agent=code_reviewer_agent, app_name=APP_NAME, session_service=session_service),
USER_ID,
SESSION_ID
)
Desktop (please complete the following information):
I got the same issue. Running locally for testing. @theainerd when you saus it works well on your end, do you setup OAuth or any additional configurations?
I can confirm everything works when running it with adk web, but I need to run this as a standard Python module. It's concerning for the prospect of this framework that your own example doesn't work properly, and it's been over two weeks without anyone addressing this issue.
Activity
theainerd commentedon May 6, 2025
Sequential is working well on my end. Could you give the sequential agent a try in
adk webtoo.gench commentedon May 8, 2025
I can't run the web, I need to run it as a python module.
mr8lu commentedon May 14, 2025
I got the same issue. Running locally for testing. @theainerd when you saus it works well on your end, do you setup OAuth or any additional configurations?
gench commentedon May 18, 2025
I can confirm everything works when running it with adk web, but I need to run this as a standard Python module. It's concerning for the prospect of this framework that your own example doesn't work properly, and it's been over two weeks without anyone addressing this issue.
Jacksunwei commentedon May 18, 2025
@gench we have a few main.py files added for reference to use google-adk as python module in the contributing/samples folder.
E.g. https://github.com/google/adk-python/blob/main/contributing/samples/hello_world/main.py
In the meanwhile, I have a pending change to update the related sample contributing/samples/workflow_agent_seq with a main.py and sample output.
Hope that will address your question.
chore: Creates a sample main.py to demonstrate how to use adk as a li…
Jacksunwei commentedon May 18, 2025
Please check out https://github.com/google/adk-python/tree/main/contributing/samples/workflow_agent_seq for illustration.
chore: Creates a sample main.py to demonstrate how to use adk as a li…
chore: Creates a sample main.py to demonstrate how to use adk as a li…