Skip to content

DeprecationWarning: "session.send" in send_realtime #2393

@enxilium

Description

@enxilium

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

Metadata

Metadata

Assignees

Labels

help wanted[Community] Extra attention is neededlive[Component] This issue is related to live, voice and video chat

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions