OptionalcodeOptional. CodeExecution tool type. Enables the model to execute code as part of generation.
OptionalcomputerOptional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
OptionalenterpriseOptional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance. This field is not supported in Gemini API.
OptionalfileOptional. Tool to retrieve knowledge from the File Search Stores.
OptionalfunctionList of function declarations that the tool supports.
OptionalgoogleOptional. GoogleMaps tool type. Tool to support Google Maps in Model.
OptionalgoogleOptional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
OptionalgoogleOptional. Specialized retrieval tool that is powered by Google Search.
OptionalretrievalOptional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation. This field is not supported in Gemini API.
OptionalurlOptional. Tool to support URL context retrieval.
Tool details of a tool that the model may use to generate a response.