GoogleTool
Tools
CodeExecution
Added in v1.0.0
Source
Signature
declare const CodeExecution: any;GoogleSearch
Added in v1.0.0
Source
Signature
declare const GoogleSearch: any;GoogleSearchRetrieval
Added in v1.0.0
Source
Signature
declare const GoogleSearchRetrieval: any;UrlContext
Added in v1.0.0
Source
Signature
declare const UrlContext: any;
Gemini 1.5 support a legacy tool named
google_search_retrieval. This tool provides a dynamic mode that allows the model to decide whether to perform a search based on its confidence that the prompt requires fresh information.If the model's confidence is above a
dynamic_thresholdyou set (a value between0.0and1.0), it will perform a search.Note: The
google_searchtool is recommended for Gemini 2.0 and later.