Optional
codeOptional. CodeExecution tool type. Enables the model to execute code as part of generation. This field is only used by the Gemini Developer API services.
Optional
functionList of function declarations that the tool supports.
Optional
googleOptional. Google Search tool type. Specialized retrieval tool that is powered by Google Search.
Optional
googleOptional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search.
Optional
retrievalOptional. 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.
Tool details of a tool that the model may use to generate a response.