Files
brojs-task-6a22c713fd30e81c…/README.md
T

913 B
Raw Blame History

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

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

# 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.