adk-python
adk-python copied to clipboard
DeprecationWarning: "session.send" in send_realtime
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:
- Set up a custom runner for live agent using WebSockets.
- Call live_request_queue.send_realtime() to send images (video feed) or audio data.
- 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
Hi @hangfei , I have associated a PR with this issue . Can you please look into it ?
@SanjaySiddharth Thanks! Could you provide a manual test result ?