Writes the Live setup message for a connect config, the way @google/genai 2.8 writes it inside live.connect for the target's endpoint (see the module's table). The result is plain JSON that shares nothing with config.
setup
@google/genai
live.connect
config
The endpoint, the model and, on Gemini Enterprise, the project and location.
The connect config, as GeminiRealtime.BuildConnectConfig builds it.
GeminiRealtime.BuildConnectConfig
The setup message's body.
When the model id is empty or malformed, or a Gemini Enterprise target has no project or location.
Writes the Live
setupmessage for a connect config, the way@google/genai2.8 writes it insidelive.connectfor the target's endpoint (see the module's table). The result is plain JSON that shares nothing withconfig.