mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
meanwhile also centralize input-stream creation in registration Move the LiveRequestQueue stream creation from _call_live (function_tool.py) to the lazy registration block in _process_function_live_helper (functions.py). This centralizes the input_stream: LiveRequestQueue annotation check and stream creation in one place, and ensures the stream is also recreated on re-invocation after stop_streaming resets it to None. _call_live now simply passes the existing .stream if set, without needing to know about LiveRequestQueue at all. Co-authored-by: Xiang (Sean) Zhou <seanzhougoogle@google.com> PiperOrigin-RevId: 869935204