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

DeprecationWarning: "session.send" in send_realtime

Open enxilium opened this issue 1 year ago • 2 comments

Describe the bug When using the `live_request_queue.send_realtime(Blob=...) method, I get a deprecation warning that states:

DeprecationWarning: The `session.send` method is deprecated and will be removed in a future version (not before Q3 2025).
Please use one of the more specific methods: `send_client_content`, `send_realtime_input`, or `send_tool_response` instead.
  await self._gemini_session.send(input=input_blob)

To Reproduce Steps to reproduce the behavior:

  1. Set up a custom runner for live agent using WebSockets.
  2. Call live_request_queue.send_realtime() to send images (video feed) or audio data.
  3. See error

Desktop (please complete the following information):

  • OS: Windows 11
  • Python version(python -V): 3.12.4
  • ADK version(pip show google-adk): 1.9.0

Model Information: Gemini Live 2.5 Flash

enxilium avatar Aug 06 '25 22:08 enxilium

Hi @hangfei , I have associated a PR with this issue . Can you please look into it ?

SanjaySiddharth avatar Nov 01 '25 10:11 SanjaySiddharth

@SanjaySiddharth Thanks! Could you provide a manual test result ?

hangfei avatar Nov 02 '25 16:11 hangfei