Skip to content

GoogleTool

4 exports Added in v1.0.0 Source

Tools

Signature

declare const CodeExecution: any;

GoogleSearch

Added in v1.0.0 Source

Signature

declare const GoogleSearch: 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_threshold you set (a value between 0.0 and 1.0), it will perform a search.

Note: The google_search tool is recommended for Gemini 2.0 and later.

Signature

declare const GoogleSearchRetrieval: any;

UrlContext

Added in v1.0.0 Source

Signature

declare const UrlContext: any;