I am getting this error ```RealtimeCapabilities._...
# ask-ai
b
I am getting this error
Copy code
RealtimeCapabilities.__init__() missing 3 required positional arguments: 'auto_tool_reply_generation', 'audio_output', and 'manual_function_calls'
t
Thanks for reaching out, Timothy. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I’m sorry you’re seeing an error — I can help. Could you share the following so I can diagnose it quickly? • The full error message and stack trace (copy/paste the exact text). • What you were doing when it happened (joining a room, publishing track, etc.). • Client(s) and SDK version(s) you're using (web/iOS/Android/server and exact versions). • Room ID and any relevant code snippet where the error occurs (mask any secrets). • Server environment (self-hosted or LiveKit cloud) and server version if known. • Any recent changes (deploys, config changes, network/firewall updates). Send those and I’ll suggest next steps. If you can’t share everything, start with the full error text and SDK version.
b
RealtimeCapabilities.__init__() missing 3 required positional arguments: 'auto_tool_reply_generation', 'audio_output', and 'manual_function_calls'
t
Thanks — I’m looking into the error about
RealtimeCapabilities.__init__()
missing arguments. To diagnose quickly, please share: • The code snippet where
RealtimeCapabilities
is instantiated (mask secrets). • SDK/language and exact version you’re using. • Full error stack trace (copy/paste). • Whether
RealtimeCapabilities
is from LiveKit, a third‑party library, or your own code. If you can’t share all, start with the instantiation snippet and SDK version. Sources: Models | LiveKit Docs | OpenAI Realtime API plugin guide | LiveKit docs | Gemini Live API plugin | LiveKit docs | Server-side | livekit/livekit_composite | DeepWiki | examples/voice_agents | livekit/livekit_composite | DeepWiki
b
google.beta.realtime.RealtimeModel(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/site-packages/livekit/plugins/google/beta/realtime/realtime_api.py\", line 156, in __init__\n capabilities=llm.RealtimeCapabilities(\n ^^^^^^^^^^^^^^^^^^^^^^^^^\nTypeError: RealtimeCapabilities.__init__() missing 3 required positional arguments: 'auto_tool_reply_generation', 'audio_output', and 'manual_function_calls'"
t
Thanks — this error means the Google beta RealtimeModel is constructing a
RealtimeCapabilities
instance but you’re not passing its required arguments. What you can do: 1. Import and pass the three required parameters when creating the model. Example:
Copy code
from livekit.plugins.google.beta.realtime import RealtimeModel
import livekit.agents.llm as llm

model = RealtimeModel(
    capabilities=llm.RealtimeCapabilities(
        auto_tool_reply_generation=True,
        audio_output=True,
        manual_function_calls=False
    )
)
1. Confirm your
livekit-agents
/ SDK version is compatible with this API shape. If you’d like, paste the snippet where you call
RealtimeModel(...)
and your SDK version and I’ll check it for the exact fix. Sources: Gemini Live API plugin | LiveKit docs | Gemini TTS plugin guide | LiveKit Docs