def news_headlines_search(self, category: str, query: str) -> List[str]:
        """
        Get top news headlines for category specified.
        Args:
            category (str) : The category specified. Must be one of technology, business, entertainment, health, sports or science.
        Returns:
            list(str): A list of top news headlines for the specified category.
        """
        result = self.news_api_client.get_top_headlines(
            category=category, language="en", country="us", page=1, q=query
        )
        return [article["title"] for article in result["articles"][:3]]

        Get top news headlines for category specified.
        Args:
            category (str) : The category specified. Must be one of technology, business, entertainment, health, sports or science.
        Returns:
            list(str): A list of top news headlines for the specified category.
        
src/autogpt_plugins/news_search/news_search.py