google / google/adk-java

ParallelAgent stops sibling branches on nested sub-agent escalation

Aperta
#1,490 1 commento 0 reazioni 1 assegnatario Rivendicata da @hemasekhar-p Vedi su GitHub
needs review
Lingua principale
Java
Stelle
1.7k
Fork
420
Merge medio
4g 12h
PR unite (30g)
31

Descrizione

## 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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.