flaky-scooter-85113
12/03/2025, 3:35 PMgeminiTools parameter?tall-airline-16756
12/03/2025, 3:35 PMtall-airline-16756
12/03/2025, 3:36 PMllm.ToolContext into the geminiTools format.
Why:
• llm.ToolContext (tools created with llm.tool(...)) are for custom function-calling inside LiveKit Agents.
• geminiTools (the _gemini_tools parameter on RealtimeModel) enables Google/Gemini-native integrations (Search, Code Execution, etc.). They are special, provider-native tools and are a different API surface.
What that means for your agent:
• Gemini Realtime will show tool descriptions but will not execute custom llm.tool function calls — Gemini Realtime only supports its native geminiTools.
• If you need custom tool execution, use one of these alternatives:
◦ Use a non‑realtime Gemini LLM (google.LLM) together with your STT/TTS pipeline and pass tools normally so function-calling works.
◦ Use a provider that supports realtime function-calling (for example OpenAI Realtime) and attach your llm.tool tools there.
If you’d like, I can:
• Review a short snippet of your current agent config (the `llm`/`RealtimeModel` block and how you register tools) and recommend the minimal code changes to switch to a supported setup.
• Show an example converting your session to google.LLM + TTS/STT or to an OpenAI realtime config. Which option do you prefer? Sources: Tool definition and use | LiveKit docs | Gemini Live API plugin | LiveKit docs | Google Gemini LLM plugin guide | LiveKit Docsflaky-scooter-85113
12/03/2025, 3:37 PMtall-airline-16756
12/03/2025, 3:37 PMllm.tool tools. It only supports its native geminiTools integrations (Google/Gemini-provided features like Search or Code Execution).
If you need custom tool execution, you can:
• Use a non-realtime Gemini LLM (google.LLM) with your STT/TTS pipeline so llm.tool function-calling works, or
• Use a realtime provider that supports function-calling (for example, OpenAI Realtime) and register your llm.tool tools there.
If you want, share your current `llm`/RealtimeModel config and a short example tool definition and I’ll recommend the minimal changes to switch to one of these alternatives.flaky-scooter-85113
12/03/2025, 3:39 PMtall-airline-16756
12/03/2025, 3:39 PMllm.tool function calls; it only supports provider-native geminiTools. That limitation makes it unsuitable when your workflow depends on custom tool execution.
What you can do next (concise options):
• Switch to a realtime provider that supports function-calling (example: OpenAI Realtime) and register your llm.tool tools there.
• Use Gemini non-realtime (google.LLM) with your STT/TTS so llm.tool function-calling runs as part of the normal LLM turn.
• Keep Gemini Realtime for voice/latency-focused use cases that only need Gemini-native tools (Search, Code Execution) and move custom tool logic to a backend service the agent can call via prompts or webhook-like flows.
If you’d like, paste your current `llm`/RealtimeModel config and one tool definition and I’ll show the minimal change to migrate to either OpenAI Realtime or `google.LLM`+TTS. Which migration should I prepare an example for?flaky-scooter-85113
12/03/2025, 3:51 PMtall-airline-16756
12/03/2025, 3:51 PMllm.tool execution.
Why: Google Realtime only runs provider-native geminiTools (Search, Code Execution, etc.) and does not execute custom llm.tool function calls. That makes it impractical for workflows that rely on your own tools.
Practical alternatives:
• Use OpenAI Realtime (or another realtime provider that supports function-calling) and register your llm.tool tools there — keeps realtime behavior + tool execution.
• Use google.LLM (non‑realtime) together with your STT/TTS pipeline so llm.tool function-calling runs during normal turns.
• Keep Google Realtime only for use cases that rely solely on Gemini-native tools or ultra-low-latency voice where custom tools are handled by a separate backend you call via prompts/webhooks.
If you want, share your current `llm`/RealtimeModel config and one tool definition and I’ll give the minimal example to migrate to OpenAI Realtime or to google.LLM + TTS. Which would you prefer?flaky-scooter-85113
12/03/2025, 3:52 PMtall-airline-16756
12/03/2025, 3:52 PMllm.tool function calls. I understand that makes it unusable for your workflow; that frustration is valid.
If you want a single clear recommendation: do not use Google Realtime when you need custom agent tools.
If you’d like help moving off it, I can provide a minimal migration example to either:
• OpenAI Realtime (keeps realtime + custom tool execution), or
• google.LLM (non‑realtime) + your STT/TTS pipeline (keeps Gemini but enables llm.tool).
Which migration would you prefer?flaky-scooter-85113
12/03/2025, 3:53 PM