Create a file named agents.yaml and add the following content to configure the agent:
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: - InternetSearchTool
pip install praisonai duckduckgo-searchexport OPENAI_API_KEY="Enter your API key"praisonai --init research about the latest AI News and prepare a detailed report
Add - InternetSearchTool in the agents.yaml file in the tools section.
Create a file called tools.py and add this code tools.py
Add the tool to the agents.yaml file as show below under the tools section - InternetSearchTool.
Copy
framework: crewaitopic: research about the latest AI News and prepare a detailed reportroles: research_analyst: backstory: Experienced in gathering and analyzing data related to AI news trends. goal: Analyze AI News trends role: Research Analyst tasks: gather_data: description: Conduct in-depth research on the latest AI News trends from reputable sources. expected_output: Comprehensive report on current AI News trends. tools: - InternetSearchTool