The SerperDevTool
is designed to search the internet and return the most relevant results.
SerperDevTool
We are still working on improving tools, so there might be unexpected behavior or changes in the future.
This tool is designed to perform a semantic search for a specified query from a text’s content across the internet. It utilizes the serper.dev API to fetch and display the most relevant search results based on the query provided by the user.
To incorporate this tool into your project, follow the installation instructions below:
The following example demonstrates how to initialize the tool and execute a search with a given query:
To effectively use the SerperDevTool
, follow these steps:
crewai[tools]
package is installed in your Python environment.serper.dev
API key by registering for a free account at serper.dev
.SERPER_API_KEY
to facilitate its use by the tool.The SerperDevTool
comes with several parameters that will be passed to the API :
search_url: The URL endpoint for the search API. (Default is https://google.serper.dev/search
)
country: Optional. Specify the country for the search results.
location: Optional. Specify the location for the search results.
locale: Optional. Specify the locale for the search results.
n_results: Number of search results to return. Default is 10
.
The values for country
, location
, locale
and search_url
can be found on the Serper Playground.
Here is an example demonstrating how to use the tool with additional parameters:
By integrating the SerperDevTool
into Python projects, users gain the ability to conduct real-time, relevant searches across the internet directly from their applications.
The updated parameters allow for more customized and localized search results. By adhering to the setup and usage guidelines provided, incorporating this tool into projects is streamlined and straightforward.
The SerperDevTool
is designed to search the internet and return the most relevant results.
SerperDevTool
We are still working on improving tools, so there might be unexpected behavior or changes in the future.
This tool is designed to perform a semantic search for a specified query from a text’s content across the internet. It utilizes the serper.dev API to fetch and display the most relevant search results based on the query provided by the user.
To incorporate this tool into your project, follow the installation instructions below:
The following example demonstrates how to initialize the tool and execute a search with a given query:
To effectively use the SerperDevTool
, follow these steps:
crewai[tools]
package is installed in your Python environment.serper.dev
API key by registering for a free account at serper.dev
.SERPER_API_KEY
to facilitate its use by the tool.The SerperDevTool
comes with several parameters that will be passed to the API :
search_url: The URL endpoint for the search API. (Default is https://google.serper.dev/search
)
country: Optional. Specify the country for the search results.
location: Optional. Specify the location for the search results.
locale: Optional. Specify the locale for the search results.
n_results: Number of search results to return. Default is 10
.
The values for country
, location
, locale
and search_url
can be found on the Serper Playground.
Here is an example demonstrating how to use the tool with additional parameters:
By integrating the SerperDevTool
into Python projects, users gain the ability to conduct real-time, relevant searches across the internet directly from their applications.
The updated parameters allow for more customized and localized search results. By adhering to the setup and usage guidelines provided, incorporating this tool into projects is streamlined and straightforward.