Class LiveClientSetup.Builder
- Enclosing class:
- LiveClientSetup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract LiveClientSetupbuild()Clears the value of contextWindowCompression field.Clears the value of generationConfig field.Clears the value of inputAudioTranscription field.Clears the value of model field.Clears the value of outputAudioTranscription field.Clears the value of proactivity field.Clears the value of realtimeInputConfig field.Clears the value of sessionResumption field.Clears the value of systemInstruction field.Clears the value of tools field.abstract LiveClientSetup.BuildercontextWindowCompression(ContextWindowCompressionConfig contextWindowCompression) Setter for contextWindowCompression.contextWindowCompression(ContextWindowCompressionConfig.Builder contextWindowCompressionBuilder) Setter for contextWindowCompression builder.abstract LiveClientSetup.BuildergenerationConfig(GenerationConfig generationConfig) Setter for generationConfig.generationConfig(GenerationConfig.Builder generationConfigBuilder) Setter for generationConfig builder.abstract LiveClientSetup.BuilderinputAudioTranscription(AudioTranscriptionConfig inputAudioTranscription) Setter for inputAudioTranscription.inputAudioTranscription(AudioTranscriptionConfig.Builder inputAudioTranscriptionBuilder) Setter for inputAudioTranscription builder.abstract LiveClientSetup.BuilderSetter for model.abstract LiveClientSetup.BuilderoutputAudioTranscription(AudioTranscriptionConfig outputAudioTranscription) Setter for outputAudioTranscription.outputAudioTranscription(AudioTranscriptionConfig.Builder outputAudioTranscriptionBuilder) Setter for outputAudioTranscription builder.abstract LiveClientSetup.Builderproactivity(ProactivityConfig proactivity) Setter for proactivity.proactivity(ProactivityConfig.Builder proactivityBuilder) Setter for proactivity builder.abstract LiveClientSetup.BuilderrealtimeInputConfig(RealtimeInputConfig realtimeInputConfig) Setter for realtimeInputConfig.realtimeInputConfig(RealtimeInputConfig.Builder realtimeInputConfigBuilder) Setter for realtimeInputConfig builder.abstract LiveClientSetup.BuildersessionResumption(SessionResumptionConfig sessionResumption) Setter for sessionResumption.sessionResumption(SessionResumptionConfig.Builder sessionResumptionBuilder) Setter for sessionResumption builder.abstract LiveClientSetup.BuildersystemInstruction(Content systemInstruction) Setter for systemInstruction.systemInstruction(Content.Builder systemInstructionBuilder) Setter for systemInstruction builder.Setter for tools.tools(Tool.Builder... toolsBuilders) Setter for tools builder.abstract LiveClientSetup.BuilderSetter for tools.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
model
Setter for model.model: The fully qualified name of the publisher model or tuned model endpoint to use.
-
clearModel
Clears the value of model field. -
generationConfig
Setter for generationConfig.generationConfig: The generation configuration for the session. Note: only a subset of fields are supported.
-
generationConfig
@CanIgnoreReturnValue public LiveClientSetup.Builder generationConfig(GenerationConfig.Builder generationConfigBuilder) Setter for generationConfig builder.generationConfig: The generation configuration for the session. Note: only a subset of fields are supported.
-
clearGenerationConfig
Clears the value of generationConfig field. -
systemInstruction
Setter for systemInstruction.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.
-
systemInstruction
@CanIgnoreReturnValue public LiveClientSetup.Builder systemInstruction(Content.Builder systemInstructionBuilder) Setter for systemInstruction builder.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.
-
clearSystemInstruction
Clears the value of systemInstruction field. -
tools
Setter for tools.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.
-
tools
Setter for tools.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.
-
tools
Setter for tools builder.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.
-
clearTools
Clears the value of tools field. -
realtimeInputConfig
public abstract LiveClientSetup.Builder realtimeInputConfig(RealtimeInputConfig realtimeInputConfig) Setter for realtimeInputConfig.realtimeInputConfig: Configures the realtime input behavior in BidiGenerateContent.
-
realtimeInputConfig
@CanIgnoreReturnValue public LiveClientSetup.Builder realtimeInputConfig(RealtimeInputConfig.Builder realtimeInputConfigBuilder) Setter for realtimeInputConfig builder.realtimeInputConfig: Configures the realtime input behavior in BidiGenerateContent.
-
clearRealtimeInputConfig
Clears the value of realtimeInputConfig field. -
sessionResumption
public abstract LiveClientSetup.Builder sessionResumption(SessionResumptionConfig sessionResumption) Setter for sessionResumption.sessionResumption: Configures session resumption mechanism.
If included server will send SessionResumptionUpdate messages.
-
sessionResumption
@CanIgnoreReturnValue public LiveClientSetup.Builder sessionResumption(SessionResumptionConfig.Builder sessionResumptionBuilder) Setter for sessionResumption builder.sessionResumption: Configures session resumption mechanism.
If included server will send SessionResumptionUpdate messages.
-
clearSessionResumption
Clears the value of sessionResumption field. -
contextWindowCompression
public abstract LiveClientSetup.Builder contextWindowCompression(ContextWindowCompressionConfig contextWindowCompression) Setter for contextWindowCompression.contextWindowCompression: Configures context window compression mechanism.
If included, server will compress context window to fit into given length.
-
contextWindowCompression
@CanIgnoreReturnValue public LiveClientSetup.Builder contextWindowCompression(ContextWindowCompressionConfig.Builder contextWindowCompressionBuilder) Setter for contextWindowCompression builder.contextWindowCompression: Configures context window compression mechanism.
If included, server will compress context window to fit into given length.
-
clearContextWindowCompression
Clears the value of contextWindowCompression field. -
inputAudioTranscription
public abstract LiveClientSetup.Builder inputAudioTranscription(AudioTranscriptionConfig inputAudioTranscription) Setter for inputAudioTranscription.inputAudioTranscription: The transcription of the input aligns with the input audio language.
-
inputAudioTranscription
@CanIgnoreReturnValue public LiveClientSetup.Builder inputAudioTranscription(AudioTranscriptionConfig.Builder inputAudioTranscriptionBuilder) Setter for inputAudioTranscription builder.inputAudioTranscription: The transcription of the input aligns with the input audio language.
-
clearInputAudioTranscription
Clears the value of inputAudioTranscription field. -
outputAudioTranscription
public abstract LiveClientSetup.Builder outputAudioTranscription(AudioTranscriptionConfig outputAudioTranscription) Setter for outputAudioTranscription.outputAudioTranscription: The transcription of the output aligns with the language code specified for the output audio.
-
outputAudioTranscription
@CanIgnoreReturnValue public LiveClientSetup.Builder outputAudioTranscription(AudioTranscriptionConfig.Builder outputAudioTranscriptionBuilder) Setter for outputAudioTranscription builder.outputAudioTranscription: The transcription of the output aligns with the language code specified for the output audio.
-
clearOutputAudioTranscription
Clears the value of outputAudioTranscription field. -
proactivity
Setter for proactivity.proactivity: Configures the proactivity of the model. This allows the model to respond proactively to the input and to ignore irrelevant input.
-
proactivity
@CanIgnoreReturnValue public LiveClientSetup.Builder proactivity(ProactivityConfig.Builder proactivityBuilder) Setter for proactivity builder.proactivity: Configures the proactivity of the model. This allows the model to respond proactively to the input and to ignore irrelevant input.
-
clearProactivity
Clears the value of proactivity field. -
build
-