Class LiveClientContextUpdate.Builder
- Enclosing class:
- LiveClientContextUpdate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract LiveClientContextUpdatebuild()Clears the value of systemInstruction field.Clears the value of tools field.abstract LiveClientContextUpdate.BuildersystemInstruction(Content systemInstruction) Setter for systemInstruction.systemInstruction(Content.Builder systemInstructionBuilder) Setter for systemInstruction builder.abstract LiveClientContextUpdate.BuilderSetter for tools.tools(LiveClientContextUpdateTools.Builder toolsBuilder) Setter for tools builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
systemInstruction
Setter for systemInstruction.systemInstruction: Updated system instruction for the model. If set, overrides `BidiGenerateContentSetup.system_instruction`. The system instructions are part of the model preamble, so updating them invalidates the prefix cache. Clients should only update this field when strictly necessary as it might have a performance impact on the model generation.
-
systemInstruction
@CanIgnoreReturnValue public LiveClientContextUpdate.Builder systemInstruction(Content.Builder systemInstructionBuilder) Setter for systemInstruction builder.systemInstruction: Updated system instruction for the model. If set, overrides `BidiGenerateContentSetup.system_instruction`. The system instructions are part of the model preamble, so updating them invalidates the prefix cache. Clients should only update this field when strictly necessary as it might have a performance impact on the model generation.
-
clearSystemInstruction
Clears the value of systemInstruction field. -
tools
Setter for tools.tools: An updated list of tools the model may use to generate the subsequent responses. If set, this list replaces the previously provided tools. The tools are part of the model preamble, so updating them invalidates the prefix cache. Clients should only update this field when strictly necessary as it might have a performance impact on the model generation.
-
tools
@CanIgnoreReturnValue public LiveClientContextUpdate.Builder tools(LiveClientContextUpdateTools.Builder toolsBuilder) Setter for tools builder.tools: An updated list of tools the model may use to generate the subsequent responses. If set, this list replaces the previously provided tools. The tools are part of the model preamble, so updating them invalidates the prefix cache. Clients should only update this field when strictly necessary as it might have a performance impact on the model generation.
-
clearTools
Clears the value of tools field. -
build
-