public Optional<ToolConfig> getToolConfig() {
    return toolConfig;
  }
Returns the optional {@link com.google.cloud.vertexai.api.ToolConfig} of this generative model.
java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerativeModel.java