Add optional `parentAgentId` to the session-event envelope for nested sub-agents
- Ngôn ngữ chính
- Java
- Star
- 10.5k
- Fork
- 1.5k
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 128
Mô tả
Sub-agent session events carry only the innermost `agentId` on the event envelope. When sub-agents nest, a consumer receiving the event stream cannot reconstruct parent-of relationships — there is no field linking a sub-agent to the agent that spawned it.
Today a consumer has to infer the parent indirectly, by correlating each sub-agent's id with the id of the tool call that started it. That works but is fragile and couples consumers to an implementation detail.
**Request:** add an explicit optional `parentAgentId` to the session-event envelope — absent for top-level/root agents, set to the spawning agent's id for nested sub-agents — so parent chains are recoverable directly from the event stream.
Hướng dẫn đóng góp
Hướng nghiên cứu
Issue không nêu tên file hay test nào; hãy bắt đầu bằng cách tìm định nghĩa của session-event envelope và đoạn code tạo các event của sub-agent lồng nhau. Theo dõi cách id của agent thực hiện việc spawn khả dụng, sau đó xác minh rằng các event gốc bỏ qua parentAgentId, các event lồng nhau bao gồm nó và các consumer có thể tái dựng chuỗi parent từ event stream.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- api
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 58/100