from langchain_community.utilities.you import YouSearchAPIWrapperclass YouSearchTool(BaseTool): name: str = "You Search Tool" description: str = "Search You.com for relevant information based on a query." def _run(self, query: str): api_wrapper = YouSearchAPIWrapper() results = api_wrapper.results(query=query, max_results=5) return results
agents.yaml
Copy
framework: crewaitopic: research about the causes of lung diseaseroles: research_analyst: backstory: Experienced in analyzing scientific data related to respiratory health. goal: Analyze data on lung diseases role: Research Analyst tasks: data_analysis: description: Gather and analyze data on the causes and risk factors of lung diseases. expected_output: Report detailing key findings on lung disease causes. tools: - 'YouSearchTool'
Assistant
Responses are generated using AI and may contain
mistakes.