```session = AgentSession( llm=google.realtime...
# ask-ai
h
Copy code
session = AgentSession(
    llm=google.realtime.RealtimeModel(
Unable to use Google Realtime llm, getting error says that: 2025-11-03 093340,280 - ERROR outbound-caller - Unhandled error while getting session: module 'livekit.plugins.google' has no attribute 'realtime' {
t
Thanks for reaching out, manish. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It looks like the error is happening because the
RealtimeModel
is inside the
beta
namespace within the
livekit.plugins.google
package. To fix this, you’ll want to make sure you’re importing it with the
beta
prefix. Here’s a little example to guide you:
Copy code
from livekit.plugins import google

# Correct usage with beta namespace
llm = google.beta.realtime.RealtimeModel(
    voice="alloy",
    input_audio_transcription=None,
    output_audio_transcription=None,
)
Also, it’s a good idea to double-check that you have the latest version of
livekit-plugins-google
installed. You can update it by running:
Copy code
pip install --upgrade livekit-plugins-google
If you run into any more questions or need a hand with the setup, just let me know—I’m here to help! Sources: plugins/google/src/beta/realtime/index.ts | examples/voice_agents/realtime_turn_detector.py
h
But lk docs doesn't uses beta version: from google.genai import types session = AgentSession( llm=google.realtime.RealtimeModel( model="gemini-2.5-flash-native-audio-preview-09-2025", _gemini_tools=[types.GoogleSearch()], ) )
t
I’m glad you reached out! Currently, the Google
RealtimeModel
in LiveKit is accessed through the
beta
namespace. This applies to both the Python and JavaScript/TypeScript SDKs. For example, in Python, you would do it like this:
Copy code
from livekit.plugins import google

llm = google.beta.realtime.RealtimeModel(
    model="gemini-2.5-flash-native-audio-preview-09-2025",
    _gemini_tools=[types.GoogleSearch()],
)
Sometimes, the documentation you’re looking at might not be fully up to date. If you notice any differences, please double-check that you’re using the latest SDK version and following the
beta
namespace pattern to ensure everything works smoothly. If you have any questions or need a hand with this, just let me know—I’m here to help! Sources: livekit-plugins/livekit-plugins-google/livekit/plugins/google/realtime/__in... | plugins/google/src/beta/realtime/index.ts