How to stream agents’ text responses in real time to another agent and the user #3338
              
                Unanswered
              
          
                  
                    
                      parthiaitech
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I’m working on a multi-agent workflow where the planner agent generates step-by-step plans, and the executor agent executes each step as soon as it’s received.
I want to stream the planner agent’s text output in real time — both to:
The executor agent, so it can start execution without waiting for the full response.
The end user, so they can see the response as it’s being generated.
Currently, the entire response is only available after generation is complete, which causes latency in the workflow.
Question:
What’s the recommended way to enable streaming of partial responses (tokens or messages) from one agent to another and to the user simultaneously?
Ideally, I want a setup similar to server-sent events (SSE) or bidirectional streaming (BIDI) where the downstream agents and the frontend receive updates as they are produced.
Context:
Framework: Google ADK multi-agent system
Goal: Reduce latency by allowing real-time streaming between planner → executor → user
Issue: Sub-agents currently wait for the full response instead of streaming partial results
Beta Was this translation helpful? Give feedback.
All reactions