adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Feature Request: Multi-Mode Streaming Architecture

Open ngesa254 opened this issue 1 year ago • 2 comments

Describe the solution you'd like Expand ADK's current "bidirectional streaming" in Live Sessions to support LangGraph's comprehensive multi-mode streaming architecture with five distinct streaming types:

Token-by-token streaming - Real-time token output across all supported models for immediate user feedback State delta streaming - Efficient bandwidth usage by streaming only state changes rather than full state snapshots Custom progress streaming - Allow tools and nodes to emit custom progress updates during long-running operations Bidirectional streaming - Real-time user interaction (already planned in roadmap) Debug streaming - Development visibility with real-time execution traces and debugging information

This would provide much broader real-time capabilities beyond the current bidirectional streaming scope, enabling:

Better user experience with immediate feedback Efficient resource usage through delta streaming Enhanced debugging and development workflows Production monitoring and observability

Describe alternatives you've considered

Current approach: Limited to bidirectional streaming in Live Sessions Polling-based updates: Less efficient and real-time than streaming WebSocket-only streaming: More limited than multi-mode approach Single streaming mode: Less flexible than supporting multiple streaming patterns for different use cases

Additional context LangGraph's multi-mode streaming architecture has become an industry standard that enterprises expect for production agent systems. This feature would:

Improve developer experience - Debug streaming provides real-time visibility into agent execution Enhance user experience - Token-by-token streaming gives immediate feedback during long agent operations Optimize performance - State delta streaming reduces bandwidth usage in complex workflows Enable production monitoring - Custom progress streaming allows detailed operational visibility

This builds naturally on ADK's existing Live Sessions work while providing the comprehensive streaming capabilities needed for enterprise-grade agent systems. Implementation considerations:

Extend current bidirectional streaming infrastructure Add streaming mode configuration to agent definitions Implement delta calculation for state streaming Provide APIs for custom progress emission from tools/nodes Add debug streaming hooks throughout execution pipeline

ngesa254 avatar Aug 21 '25 02:08 ngesa254

@ngesa254 Thanks for reporting! the request is currently under review. Thanks for your patience

klateefa avatar Nov 24 '25 04:11 klateefa

Thanks for the detailed request, @ngesa254!

Reviewing this against the current state of ADK, the proposed streaming capabilities are largely already supported:

  • Token-by-token streaming — Available via StreamingMode.SSE in RunConfig
  • State delta streaming — Every event carries EventActions.state_delta, so only state changes are propagated rather than full snapshots
  • Bidirectional streaming — Fully supported through run_live() and LiveRequestQueue, including audio/video and interruptions
  • Debug streaming / execution traces — Provided via the OpenTelemetry-based telemetry module, with per-event and per-session trace retrieval through the dev server debug endpoints

Since these are already addressed, I'm closing this issue. Feel free to open a new one if there's a specific gap you'd like us to track.

allen-stephen avatar Jun 18 '26 19:06 allen-stephen