From abe605f06327f34587888207c2b93b09b90f67de 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=9A=D1=83=D1=82?= =?UTF-8?q?=D0=BB=D0=B0=D1=85=D0=BC=D0=B5=D1=82=D0=BE=D0=B2?= Date: Wed, 27 May 2026 12:28:56 +0000 Subject: [PATCH] create README.md --- README.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c5da1c9..0854c22 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,33 @@ -# task-69a474cdc46fd26feae69896 +# Agent with Memory and Human‑In‑The‑Loop Confirmation +## What this project does +This repository contains a small demo of a LangChain agent that: +1. **Remembers** the conversation across multiple turns using `MemorySaver`. +2. **Pauses** before calling any tool so the user can confirm or cancel the action. +3. Uses the **BroJS LLM endpoint** (`openai/gpt-oss-20b:free`). +4. Renders output with the `rich` library for a pleasant console experience. + +## File structure +``` +├── main.py # Entry point – runs three example interactions. +├── agent.py # Agent definition and helper to run it. +├── requirements.txt # Dependencies (no pinned versions). +└── README.md # This file. +``` + +## Installation +```bash +pip install -r requirements.txt +export JOURNAL_MCP_PAT=YOUR_BROJS_TOKEN +``` + +## Running the demo +```bash +python main.py +``` +You will see three examples: +1. A simple question that requires no tool. +2. A price query that triggers a confirmation prompt. +3. A follow‑up that demonstrates memory. + +Feel free to modify `get_price` or add more tools – the agent will automatically pause before each call.