Search
SerperApi
SerperApiTools enable an Agent to search Google for a query.
Prerequisites
The following example requires an API key from SerperApi.
Example
The following agent will search Google for the query: “Whats happening in the USA” and share results.
cookbook/tools/serper_tools.py
Toolkit Params
Parameter | Type | Default | Description |
---|---|---|---|
api_key | str | - | API key for authentication purposes. |
location | str | "us" | Location to search from. |
Toolkit Functions
Function | Description |
---|---|
search_google | This function searches Google for a query. |