Package com.google.genai.types
Enum ToolType.Known
- All Implemented Interfaces:
Serializable,Comparable<ToolType.Known>
- Enclosing class:
- ToolType
Enum representing the known values for ToolType.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFile search tool, maps to Tool.file_search.Google maps tool, maps to Tool.google_maps.Image search tool, maps to Tool.google_search.search_types.image_search.Google search tool, maps to Tool.google_search.search_types.web_search.Unspecified tool type.URL context tool, maps to Tool.url_context. -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolType.KnownReturns the enum constant of this type with the specified name.static ToolType.Known[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TOOL_TYPE_UNSPECIFIED
Unspecified tool type. -
GOOGLE_SEARCH_WEB
Google search tool, maps to Tool.google_search.search_types.web_search. -
GOOGLE_SEARCH_IMAGE
Image search tool, maps to Tool.google_search.search_types.image_search. -
URL_CONTEXT
URL context tool, maps to Tool.url_context. -
GOOGLE_MAPS
Google maps tool, maps to Tool.google_maps. -
FILE_SEARCH
File search tool, maps to Tool.file_search.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-