millions-greece-12478
10/10/2025, 2:52 AMtall-airline-16756
10/10/2025, 2:52 AMtall-airline-16756
10/10/2025, 2:52 AMupdateInstructions method isn’t directly available on the session object. Instead, you’ll want to call update_instructions() on the Agent instance. This way, the instructions get updated correctly by going through the right session layer.
For example, in JavaScript/TypeScript, you can try:
await this._activity.updateInstructions(instructions);
If you’re working with a custom agent setup or if you’d like some help debugging a specific integration, please don’t hesitate to reach out—I’m here to help!
Sources: basics/change_agent_instructions.py | plugins/openai/src/realtime/realtime_model.ts | livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/realtime/real...millions-greece-12478
10/10/2025, 2:54 AMtall-airline-16756
10/10/2025, 2:55 AMmillions-greece-12478
10/10/2025, 2:55 AMtall-airline-16756
10/10/2025, 2:55 AMupdate_instructions method from your Agent instance. This is a great way to make sure your new instructions are smoothly shared throughout the Google Realtime session.
Here’s a quick example to help you out:
await agent.update_instructions("New system instructions for the agent.")
If you happen to be working directly with the session, you can also try this:
await activity.update_instructions("Updated instructions...")
Just a heads-up: when you update instructions in Google Realtime, it will restart the session to apply those changes properly. If you have any questions or need a hand with this, feel free to reach out—I’m here to help!
Sources: LLM Integration & Real-time Models | livekit/livekit_composite | DeepWiki | Gemini Live API plugin | LiveKit Docs | Agent Session & Activity Management | livekit/livekit_composite | DeepWiki | livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/realtime/real... | plugins/openai/src/realtime/realtime_model.ts