google / google/adk-java

ParallelAgent stops sibling branches on nested sub-agent escalation

Open
#1,490 1 comment 0 reactions 1 assignee Claimed by @hemasekhar-p View on GitHub
needs review
Dominant language
Java
Stars
1.7k
Forks
420
Avg merge
4d 12h
Merged PRs (30d)
31

Description

## Description

In adk-java, `ParallelAgent` stops all parallel branches when **any** event has `escalate=true`, including escalation from nested sub-agents (for example, an agent running inside a `LoopAgent` sub-branch).

In adk-python, parallel early-exit only happens when the escalating event comes from a **direct** sub-agent:

```python
# parallel_agent.py — _asks_this_agent_to_exit
return bool(event.actions.escalate) and event.author in sub_agent_names

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.