UpdateThink: Replace Think Provider Mid-Conversation

You can now dynamically replace the entire Think provider configuration during a live Voice Agent conversation using the new UpdateThink client message. This allows you to switch to a different LLM provider, change the model, set a completely new prompt, and reconfigure functions — all in a single message.

Unlike UpdatePrompt, which adds to the existing prompt, UpdateThink replaces the full Think provider configuration, giving you complete control over the agent’s reasoning setup mid-conversation.

Example:

1{
2 "type": "UpdateThink",
3 "think": {
4 "provider": {
5 "type": "open_ai",
6 "model": "gpt-4o-mini"
7 },
8 "prompt": "You are a helpful voice assistant."
9 }
10}

The server confirms the change with a ThinkUpdated response message.

For more details, visit the UpdateThink documentation.