@CanIgnoreReturnValue
    public Builder setToolConfig(ToolConfig toolConfig) {
      checkNotNull(
          toolConfig,
          "toolConfig can't be null. Use Optional.empty() if no tool config is intended.");
      this.toolConfig = Optional.of(toolConfig);
      return this;
    }
Sets a {@link com.google.cloud.vertexai.api.ToolConfig} 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