google / google/adk-java

ParallelAgent stops sibling branches on nested sub-agent escalation

Đang mở
#1,490 1 bình luận 0 reaction 1 người được giao Được @hemasekhar-p nhận Xem trên GitHub
needs review
Ngôn ngữ chính
Java
Star
1.7k
Fork
421
Merge trung bình
4 ngày 12 giờ
Pull request đã merge (30 ngày)
31

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.