main
LangGraph Research Brief Agent
Overview
This repository implements a LangGraph agent that generates a short research brief for any given topic. The agent follows the assignment specification:
- Create an outline of 4‑5 bullet points.
- For each point perform one web search via Tavily and collect a concise note.
- Synthesize all notes into a coherent brief (≈½–1 page).
The implementation uses:
langgraph– graph orchestrationlangchain-openai– LLM calls to the BroJS GPT‑OSS modellangchain-tavily– web search via Tavily APIpython-dotenv– environment variable loading (TAVILY_API_KEY, JOURNAL_MCP_PAT)
Installation
pip install -r requirements.txt
Usage
# Run the agent for a specific topic
python main.py "How to integrate LangGraph with Tavily"
The script prints:
- The generated outline
- Notes collected from web searches
- Final research brief
You can also import run_brief in your own code.
Project structure
├── main.py # Entry point and LangGraph implementation
├── requirements.txt # Dependencies
└── README.md # Documentation
Example outputs
- Topic: How to integrate LangGraph with Tavily
- Topic: Best practices for building research briefs in AI
- Topic: Using LangChain and LangGraph for educational projects
Feel free to experiment with different topics. ""
Description
Languages
Python
100%