def news_headlines_search_wrapper(self, query: str) -> List[str]:
        """
        Aggregates top news headlines from the categories.
        Returns:
            list(str): A list of top news headlines aggregated from all categories.
        """
        with concurrent.futures.ThreadPoolExecutor() as tp:
            futures = []
            for cat in categories:
                futures.append(
                    tp.submit(self.news_headlines_search, category=cat, query=query)
                )

            aggregated_headlines = []
            for fut in concurrent.futures.wait(futures)[0]:
                aggregated_headlines.append(fut.result())

            return aggregated_headlines

        Aggregates top news headlines from the categories.
        Returns:
            list(str): A list of top news headlines aggregated from all categories.
        
src/autogpt_plugins/news_search/news_search.py