# LangGraph research brief generator ## Overview This repository contains a LangGraph agent that generates a connected research brief on a single topic. The agent: 1. Uses an LLM to generate concise section headings for the brief. 2. For each heading, performs a Tavily web search to fetch relevant content. 3. Aggregates the sections into a single Markdown brief with a summary. The agent is implemented in `src/main.py` and can be run from the command line. ## Requirements ```bash pip install -r requirements.txt ``` The following environment variables must be set: - `OPENAI_API_KEY` – key for the OpenAI model used by LangChain. - `TAVILY_API_KEY` – key for the Tavily API. ## Usage ```bash # Default demo – generates a brief on "Artificial Intelligence" python -m src.main # Custom topic python -m src.main "Quantum Computing" ``` The script prints the generated brief in Markdown format.