Class LiveClientContextUpdate.Builder

java.lang.Object
com.google.genai.types.LiveClientContextUpdate.Builder
Enclosing class:
LiveClientContextUpdate

public abstract static class LiveClientContextUpdate.Builder extends Object
Builder for LiveClientContextUpdate.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • systemInstruction

      public abstract LiveClientContextUpdate.Builder systemInstruction(Content 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

      @CanIgnoreReturnValue public LiveClientContextUpdate.Builder 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

      @CanIgnoreReturnValue public LiveClientContextUpdate.Builder clearTools()
      Clears the value of tools field.
    • build

      public abstract LiveClientContextUpdate build()