From c2687b66b5878279fc788eb5d1afabd4b34514c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB=20=D0=A0=D0=BE=D0=BC?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=B2?= Date: Fri, 5 Jun 2026 12:37:29 +0000 Subject: [PATCH] Update README.md --- README.md | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index be612a6..65cac6f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,34 @@ -# task-6a1d75dbfd30e81cf3126b09 +# Research Brief Generator -Повторный экзамен: Исследовательский бриф (план → шаги → сводка) \ No newline at end of file +This project implements a **LangGraph** based agent that, given a research topic, produces a short research brief. The workflow is: + +1. **Outline** – The LLM generates a 4–5 point outline. +2. **Research** – For each outline point a single Tavily web search is performed and a concise note is produced. +3. **Synthesize** – All notes are combined into a ½–1 page brief. + +The agent uses: +- **OpenAI** (ChatOpenAI) for LLM calls. +- **TavilySearch** for real‑time web queries. +- **LangGraph** for stateful flow control. + +## Prerequisites + +- Python 3.10+ +- An OpenAI API key (set `OPENAI_API_KEY`). +- A Tavily API key (set `TAVILY_API_KEY`). + +Both keys can be stored in a `.env` file in the project root. + +## Installation + +```bash +pip install -r requirements.txt +``` + +## Usage + +```bash +python -m src.cli "Explain to a student the difference between tool and resource in MCP." +``` + +The script will print the outline, each research step with notes, and the final brief. \ No newline at end of file