Class GoogleMaps

java.lang.Object
com.google.genai.gaos.models.interactions.GoogleMaps
All Implemented Interfaces:
Tool

public class GoogleMaps extends Object implements Tool
GoogleMaps

A tool that can be used by the model to call Google Maps.

  • Constructor Details

    • GoogleMaps

      public GoogleMaps(@Nullable Boolean enableWidget, @Nullable Double latitude, @Nullable Double longitude)
    • GoogleMaps

      public GoogleMaps()
  • Method Details

    • enableWidget

      public Optional<Boolean> enableWidget()
      Whether to return a widget context token in the tool call result of the response.
    • latitude

      public Optional<Double> latitude()
      The latitude of the user's location.
    • longitude

      public Optional<Double> longitude()
      The longitude of the user's location.
    • type

      public String type()
      Specified by:
      type in interface Tool
    • builder

      public static GoogleMaps.Builder builder()
    • withEnableWidget

      public GoogleMaps withEnableWidget(@Nullable Boolean enableWidget)
      Whether to return a widget context token in the tool call result of the response.
    • withLatitude

      public GoogleMaps withLatitude(@Nullable Double latitude)
      The latitude of the user's location.
    • withLongitude

      public GoogleMaps withLongitude(@Nullable Double longitude)
      The longitude of the user's location.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object