Replies: 1 comment 1 reply
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: Hello! That's a great question. You are correct that However, you can achieve the behavior you're looking for by having an agent in the sequence decide when to terminate the entire workflow. Any agent can signal the framework to stop processing by setting Here is how you can apply this to your use case:
This way, For more complex branching or conditional logic, the recommended approach is to create a custom agent that can implement that logic using standard Python [1] Sequential Agents Documentation |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a SequentialAgent that looks like:
And if
review_agentoutputsFalse, I want to immediately break the chain of SequentialAgent, so thatafter_agentwill not be executed.In LoopAgent, I can set
EventActions(escalate=True)to break the loop. Is there an equivalent of that for SequentialAgent?Beta Was this translation helpful? Give feedback.
All reactions