Enum ToolType.Known

java.lang.Object
java.lang.Enum<ToolType.Known>
com.google.genai.types.ToolType.Known
All Implemented Interfaces:
Serializable, Comparable<ToolType.Known>
Enclosing class:
ToolType

public static enum ToolType.Known extends Enum<ToolType.Known>
Enum representing the known values for ToolType.
  • Enum Constant Details

    • TOOL_TYPE_UNSPECIFIED

      public static final ToolType.Known TOOL_TYPE_UNSPECIFIED
      Unspecified tool type.
    • GOOGLE_SEARCH_WEB

      public static final ToolType.Known GOOGLE_SEARCH_WEB
      Google search tool, maps to Tool.google_search.search_types.web_search.
    • GOOGLE_SEARCH_IMAGE

      public static final ToolType.Known GOOGLE_SEARCH_IMAGE
      Image search tool, maps to Tool.google_search.search_types.image_search.
    • URL_CONTEXT

      public static final ToolType.Known URL_CONTEXT
      URL context tool, maps to Tool.url_context.
    • GOOGLE_MAPS

      public static final ToolType.Known GOOGLE_MAPS
      Google maps tool, maps to Tool.google_maps.
  • Method Details

    • values

      public static ToolType.Known[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ToolType.Known valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null