Class GoogleSearch

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GoogleSearch

public abstract class GoogleSearch extends JsonSerializable
Tool to support Google Search in Model. Powered by Google.
  • Constructor Details

    • GoogleSearch

      public GoogleSearch()
  • Method Details

    • timeRangeFilter

      public abstract Optional<Interval> timeRangeFilter()
      Optional. Filter search results to a specific time range. If customers set a start time, they must set an end time (and vice versa).
    • excludeDomains

      public abstract Optional<List<String>> excludeDomains()
      Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
    • builder

      public static GoogleSearch.Builder builder()
      Instantiates a builder for GoogleSearch.
    • toBuilder

      public abstract GoogleSearch.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static GoogleSearch fromJson(String jsonString)
      Deserializes a JSON string to a GoogleSearch object.