The Google Trends Tool allows your agent to utilize the Google Trends API from SerpApi to retrieve and analyze search interest data.
This can be useful for understanding trending topics, regional search interest, and historical popularity of search terms.For API details see hereSerpApi caches queries, so the first query will be slower while subsequent identical queries will be fast.
Occasionally, related queries will not work while interest over time will be fine. You can check your query here.
To use this tool, you will need to configure access to the Google Trends API from SerpApi.Get an API key from SerpApiThen, set your API key as process.env.SERPAPI_API_KEY or pass it in as an apiKey constructor argument.