square-flag-66304
09/26/2025, 10:15 AMtall-airline-16756
09/26/2025, 10:15 AMtall-airline-16756
09/26/2025, 10:15 AMRealtimeModel instance by using the instructions parameter, like this:
from livekit.plugins import google
model = google.beta.realtime.RealtimeModel(
instructions="You are a helpful assistant"
)
2. Dynamic Prompt Updates:
If you want to update the prompt on the fly during an active session, you can use the update_instructions method from the RealtimeSession class:
await session.update_instructions("New instructions for the assistant")
Just a heads-up: when you update the prompt dynamically, the session will restart so the new instructions take effect smoothly. This way, all your next interactions will follow the updated prompt.
If you have any questions or need more help, please don’t hesitate to ask—I’m here for you!
Sources: Gemini Live API integration guide | LiveKit Docs | Docs::Agents | Google integration guide | LiveKit Docs | livekit-plugins/livekit-plugins-google/livekit/plugins/google/llm.pysquare-flag-66304
09/26/2025, 10:18 AMtall-airline-16756
09/26/2025, 10:18 AMupdate_instructions method I mentioned earlier.
Would you like me to walk you through how to implement these dynamic updates? Or is there something specific you’re aiming to achieve with the prompt? I’m here to help!square-flag-66304
09/26/2025, 10:19 AMtall-airline-16756
09/26/2025, 10:20 AMupdate_instructions method of the RealtimeSession class. This handy feature lets you update the prompt dynamically while your session is still active. Here's a simple example:
await session.update_instructions("New instructions for the assistant")
When you use this method, it will restart the session to make sure the new instructions take effect, so all your next interactions will follow the updated prompt.
If you have any questions or need a hand with this, please don’t hesitate to ask—I’m here to help!square-flag-66304
09/26/2025, 10:21 AMtall-airline-16756
09/26/2025, 10:21 AM