LiveAPIClientParameters
Gemini.LiveAPIClient parameters. Can be passed as arguments to the Gemini.createLiveAPIClient method.
Props
apiKey
apiKey: string
The API key for the Gemini Live API.
backend
backend:
Optional. Backend is the GenAI backend to use for the client. The default value is Gemini.Backend.GEMINI_API.
connectConfig
connectConfig: Object
Optional. Session config for the API connection. https://pkg.go.dev/google.golang.org/genai@v1.2.0#LiveConnectConfig
model
model: string
| undefined
Optional. The model to use for Gemini Live API processing. The default value is gemini-2.0-flash-exp.
onWebSocketClose
onWebSocketClose: (event: WebSocketEvents.CLOSE) => void
| undefined
Optional. A callback function that is called when the WebSocket connection is closed.