Package com.google.genai.types
Class LiveClientSetup
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LiveClientSetup
Message contains configuration that will apply for the duration of the streaming session.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for LiveClientSetup. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LiveClientSetup.Builder
builder()
Instantiates a builder for LiveClientSetup.abstract Optional<ContextWindowCompressionConfig>
Configures context window compression mechanism.static LiveClientSetup
Deserializes a JSON string to a LiveClientSetup object.abstract Optional<GenerationConfig>
The generation configuration for the session.abstract Optional<AudioTranscriptionConfig>
The transcription of the input aligns with the input audio language.model()
The fully qualified name of the publisher model or tuned model endpoint to use.abstract Optional<AudioTranscriptionConfig>
The transcription of the output aligns with the language code specified for the output audio.abstract Optional<ProactivityConfig>
Configures the proactivity of the model.abstract Optional<RealtimeInputConfig>
Configures the realtime input behavior in BidiGenerateContent.abstract Optional<SessionResumptionConfig>
Configures session resumption mechanism.The user provided system instructions for the model.abstract LiveClientSetup.Builder
Creates a builder with the same values as this instance.tools()
A list of `Tools` the model may use to generate the next response.Methods inherited from class com.google.genai.JsonSerializable
toJson
-
Constructor Details
-
LiveClientSetup
public LiveClientSetup()
-
-
Method Details
-
model
The fully qualified name of the publisher model or tuned model endpoint to use. -
generationConfig
The generation configuration for the session. Note: only a subset of fields are supported. -
systemInstruction
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. -
tools
A list of `Tools` the model may use to generate the next response.A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
-
realtimeInputConfig
Configures the realtime input behavior in BidiGenerateContent. -
sessionResumption
Configures session resumption mechanism.If included server will send SessionResumptionUpdate messages.
-
contextWindowCompression
Configures context window compression mechanism.If included, server will compress context window to fit into given length.
-
inputAudioTranscription
The transcription of the input aligns with the input audio language. -
outputAudioTranscription
The transcription of the output aligns with the language code specified for the output audio. -
proactivity
Configures the proactivity of the model. This allows the model to respond proactively to the input and to ignore irrelevant input. -
builder
Instantiates a builder for LiveClientSetup. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a LiveClientSetup object.
-