Repository navigation
Text streaming #3337
|
Is possible to stream the text response while agent generating the content lively? |
Replies: 2 comments
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: Yes, text streaming is a native feature of ADK and is enabled by default. You can use the Hello! Yes, it is possible to stream the text response as the agent generates it. This is a core feature of ADK designed to support real-time, interactive experiences. [2] ADK provides native support for bidirectional streaming of both text and audio. For Python applications, you can use the The documentation provides several examples of how to implement streaming agents:
For more detailed information, you can refer to the ADK documentation on streaming. References: |
|
Real-time text streaming is natively integrated into ADK Python by passing |
Real-time text streaming is natively integrated into ADK Python by passing
RunConfig(streaming_mode=StreamingMode.SSE)intorunner.run_async(), consuming progressive chunks whereevent.partial=True.For bidirectional voice/video interactions,
StreamingMode.BIDIis also supported.