nice-room-70150
09/11/2025, 11:46 PMtall-airline-16756
09/11/2025, 11:46 PMtall-airline-16756
09/11/2025, 11:46 PMnice-room-70150
09/11/2025, 11:51 PMtall-airline-16756
09/11/2025, 11:52 PMnice-room-70150
09/11/2025, 11:57 PMtall-airline-16756
09/11/2025, 11:58 PMupdate_instructions
method. Just a heads up, when you update the prompt this way, the conversation restarts—so the active context resets, but your session history stays intact.
If you're looking to keep the conversation flowing smoothly while changing prompts, a great option is to use the update_agent
method. This lets you switch to a new agent with a different prompt, and the best part is the new agent inherits the previous conversation context, making the transition feel seamless.
Feel free to reach out if you'd like me to walk you through examples or provide more details on how to use these methods. I'm here to help!
Sources: Workflows | LiveKit Docs | livekit-plugins/livekit-plugins-ultravox/livekit/plugins/ultravox/realtime/... | basics/change_agent_instructions.py | Workflows | LiveKit Docsnice-room-70150
09/12/2025, 12:07 AMtall-airline-16756
09/12/2025, 12:07 AMupdate_instructions
method to dynamically change the prompt. If you'd like to reset the conversation history or pull up specific history for your new character, the update_chat_ctx
method is your friend—it lets you clear the context or load a customized one.
For instance, you might create a new ChatContext
with the system message tailored for your new character and apply it. Or, you could trim or filter the existing history to keep just the parts that matter. This way, you have flexible control over both the prompt and the conversation context.
Please feel free to reach out if you'd like me to share some detailed code examples or if you want me to walk you through the implementation step-by-step. I'm here to help!
Sources: plugins/openai/src/realtime/realtime_model.ts | Workflows | LiveKit Docs | Workflows | LiveKit Docs | multi-agent/long_or_short_agent.py | livekit-agents/livekit/agents/voice/generation.pynice-room-70150
09/12/2025, 12:09 AMtall-airline-16756
09/12/2025, 12:09 AMnice-room-70150
09/12/2025, 12:10 AMtall-airline-16756
09/12/2025, 12:10 AMnice-room-70150
09/12/2025, 12:11 AMtall-airline-16756
09/12/2025, 12:11 AMnice-room-70150
09/12/2025, 12:12 AMtall-airline-16756
09/12/2025, 12:12 AMnice-room-70150
09/12/2025, 12:23 AMtall-airline-16756
09/12/2025, 12:23 AMnice-room-70150
09/12/2025, 12:24 AMtall-airline-16756
09/12/2025, 12:25 AM