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

35 lines
913 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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.