Add optional `parentAgentId` to the session-event envelope for nested sub-agents
- Lingua principale
- Java
- Stelle
- 10.5k
- Fork
- 1.5k
- Merge medio
- 1g 11h
- PR unite (30g)
- 128
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
No file or test is named in the issue; start by locating the session-event envelope definition and the code that creates nested sub-agent events. Trace how the spawning agent id is available, then verify that root events omit parentAgentId, nested events include it, and consumers can reconstruct the parent chain from the event stream.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- api
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 58/100