LiveClientSetup

@Serializable
data class LiveClientSetup(val model: String? = null, val generationConfig: GenerationConfig? = null, val systemInstruction: Content? = null, val tools: List<Tool>? = null, val sessionResumption: SessionResumptionConfig? = null, val contextWindowCompression: ContextWindowCompressionConfig? = null, val inputAudioTranscription: AudioTranscriptionConfig? = null, val outputAudioTranscription: AudioTranscriptionConfig? = null, val proactivity: ProactivityConfig? = null, val explicitVadSignal: Boolean? = null, val avatarConfig: AvatarConfig? = null, val safetySettings: List<SafetySetting>? = null, val historyConfig: HistoryConfig? = null, val realtimeInputConfig: RealtimeInputConfig? = null)

Message contains configuration that will apply for the duration of the streaming session.

Constructors

Link copied to clipboard
constructor(model: String? = null, generationConfig: GenerationConfig? = null, systemInstruction: Content? = null, tools: List<Tool>? = null, sessionResumption: SessionResumptionConfig? = null, contextWindowCompression: ContextWindowCompressionConfig? = null, inputAudioTranscription: AudioTranscriptionConfig? = null, outputAudioTranscription: AudioTranscriptionConfig? = null, proactivity: ProactivityConfig? = null, explicitVadSignal: Boolean? = null, avatarConfig: AvatarConfig? = null, safetySettings: List<SafetySetting>? = null, historyConfig: HistoryConfig? = null, realtimeInputConfig: RealtimeInputConfig? = null)

Properties

Link copied to clipboard

Configures the avatar model behavior.

Link copied to clipboard

Configures context window compression mechanism.

Link copied to clipboard

Configures the explicit VAD signal. If enabled, the client will send vad_signal to indicate the start and end of speech. This allows the server to process the audio more efficiently.

Link copied to clipboard

The generation configuration for the session. Note: only a subset of fields are supported.

Link copied to clipboard

Configures the exchange of history between the client and the server.

Link copied to clipboard

The transcription of the input aligns with the input audio language.

Link copied to clipboard
val model: String? = null

The fully qualified name of the publisher model or tuned model endpoint to use.

Link copied to clipboard

The transcription of the output aligns with the language code specified for the output audio.

Link copied to clipboard

Configures the proactivity of the model. This allows the model to respond proactively to the input and to ignore irrelevant input.

Link copied to clipboard

Configures the realtime input behavior in BidiGenerateContent.

Link copied to clipboard

Safety settings in the request to block unsafe content in the response.

Link copied to clipboard

Configures session resumption mechanism.

Link copied to clipboard

The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph.

Link copied to clipboard
val tools: List<Tool>? = null

A list of Tools the model may use to generate the next response.