@CanIgnoreReturnValue
    public Builder setTools(List<Tool> tools) {
      checkNotNull(tools, "tools can't be null. Use an empty list if no tool is to be used.");
      this.tools = ImmutableList.copyOf(tools);
      return this;
    }
Sets a list of {@link com.google.cloud.vertexai.api.Tool} that will be used by default to
interact with the generative model.
java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerativeModel.java