Skip to main content
This example shows how to create a sophisticated research agent that combines web search capabilities with professional journalistic writing skills. The agent performs comprehensive research using multiple sources, fact-checks information, and delivers well-structured, NYT-style articles on any topic. Key capabilities:
  • Advanced web search across multiple sources
  • Content extraction and analysis
  • Cross-reference verification
  • Professional journalistic writing
  • Balanced and objective reporting
Example prompts to try:
  • โ€œAnalyze the impact of AI on healthcare delivery and patient outcomesโ€
  • โ€œReport on the latest breakthroughs in quantum computingโ€
  • โ€œInvestigate the global transition to renewable energy sourcesโ€
  • โ€œExplore the evolution of cybersecurity threats and defensesโ€
  • โ€œResearch the development of autonomous vehicle technologyโ€

Code

research_agent.py

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
2

Install libraries

3

Set environment variables

4

Run the agent