GoogleSearch enables an Agent to perform web crawling and scraping tasks.Documentation Index
Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
The following examples requires thegooglesearch and pycountry libraries.
Example
The following agent will search Google for the latest news about “Mistral AI”:cookbook/tools/googlesearch_tools.py
Toolkit Params
| Parameter | Type | Default | Description |
|---|---|---|---|
fixed_max_results | int | None | Optional fixed maximum number of results to return. |
fixed_language | str | None | Optional fixed language for the requests. |
headers | Any | None | Optional headers to include in the requests. |
proxy | str | None | Optional proxy to be used for the requests. |
timeout | int | None | Optional timeout for the requests, in seconds. |
Toolkit Functions
| Function | Description |
|---|---|
google_search | Searches Google for a specified query. Parameters include query for the search term, max_results for the maximum number of results (default is 5), and language for the language of the search results (default is “en”). Returns the search results as a JSON formatted string. |