Skip to content

Commit bee8029

Browse files
post rebase from main if escalate is true in the sequential_agent then the agent terminates the sequence immediately preventing subsequent agents from running.
1 parent 23249e1 commit bee8029

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/google/adk/agents/sequential_agent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ async def _run_async_impl(
8181
yield event
8282
if ctx.should_pause_invocation(event):
8383
pause_invocation = True
84-
84+
if event.actions and event.actions.escalate:
85+
return
8586
# Skip the rest of the sub-agents if the invocation is paused.
8687
if pause_invocation:
8788
return

0 commit comments

Comments
 (0)