Problem Statement
Dynamically spawned agents in multi-agent scenarios may have different session IDs. This breaks tracing, debugging, and conversation history coherence when agents spawn sub-agents or delegate to other agents.
Proposed Solution
Provide a mechanism to propagate session ID across agent boundaries:
- Automatic session ID inheritance when spawning sub-agents
- A context propagation mechanism for multi-agent scenarios
- Configuration option to maintain or isolate session IDs
Use Case
In multi-agent orchestration:
- A coordinator agent receives a request (session ID: abc123)
- It spawns specialist agents to handle subtasks
- All agents should share session ID abc123 for:
- End-to-end request tracing
- Unified conversation history
- Correlated logging and observability
- Debugging complex multi-agent flows
Alternatives Solutions
We currently manually propagate session IDs, but this is error-prone and requires modifying agent instantiation patterns.
Additional Context
No response
Problem Statement
Dynamically spawned agents in multi-agent scenarios may have different session IDs. This breaks tracing, debugging, and conversation history coherence when agents spawn sub-agents or delegate to other agents.
Proposed Solution
Provide a mechanism to propagate session ID across agent boundaries:
Use Case
In multi-agent orchestration:
Alternatives Solutions
We currently manually propagate session IDs, but this is error-prone and requires modifying agent instantiation patterns.
Additional Context
No response