The agent not following the workflow. #3007
Replies: 1 comment 1 reply
-
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: Your workflow is stopping because the instruction in step 1, "return the control to the parent agent," is telling the agent to end its process. Removing this phrase will allow the workflow to proceed to the next steps as intended. Hello! Based on the information you've provided, I can see why your workflow is not proceeding past the first step. Here’s a breakdown of the issue and how to resolve it. The problem lies in this part of your instruction for the first step:
In the context of ADK workflows, this instruction is interpreted by the agent as an explicit command to stop its current sequence of tasks and hand off control. This effectively terminates the workflow, preventing it from moving on to steps 2 and 3. ADK is designed to execute a series of sub-agents in a predefined order. [1] Once a step is completed successfully, the framework automatically proceeds to the next one in the sequence. You don't need to explicitly tell the agent to continue; you only need to ensure you don't tell it to stop. To fix this, you should remove the instruction to return control. You can also rephrase the instruction to be more explicit about what to do if the validation is successful, for example, by simply stating that the process should continue. Here is a revised version of your workflow instructions:
By making this small change, the agent will understand that after successful validation in step 1, it should continue to step 2, allowing your workflow to execute as you originally intended. For more details on how to structure multi-agent systems and control the flow of execution, you can refer to the official ADK documentation on multi-agent systems. [1] Let me know if you have any other questions! This response was generated by an automated assistant. Please note that the information provided is based on the available documentation and may not cover all edge cases or scenarios. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have created a manager and define a workflow with subagents, now after delegating the task to first agent it stops after 1st step.
below is my instruction for the main agent.
You are a manager of a care home. Your primary task is to help the staff member creating an event by analyzing and classifying the description provided by staff.
I am new to Agent development. So any help would be appreciated. Thanks
Beta Was this translation helpful? Give feedback.
All reactions