public GenerativeModel withSystemInstruction(Content systemInstruction) {
    checkNotNull(
        systemInstruction,
        "system instruction can't be null. "
            + "Use Optional.empty() if no system instruction should be provided.");
    return new GenerativeModel(
        modelName,
        generationConfig,
        safetySettings,
        tools,
        toolConfig,
        Optional.of(systemInstruction),
        vertexAi);
  }
Creates a copy of the current model with updated system instructions.

@param systemInstruction a {@link com.google.cloud.vertexai.api.Content} containing system
    instructions.
@return a new {@link GenerativeModel} instance with the specified tools.
java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerativeModel.java