From 0ff3968589219fc19466224100bcf9c2e2b3d813 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: Thu, 7 May 2026 16:39:07 +0000 Subject: [PATCH] Add README in English --- stream-agent/README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 stream-agent/README.md diff --git a/stream-agent/README.md b/stream-agent/README.md new file mode 100644 index 0000000..9eda85f --- /dev/null +++ b/stream-agent/README.md @@ -0,0 +1,23 @@ +# Stream Agent + +This repository contains a simple LangChain agent that demonstrates the **stream** mode. + +## What it does + +The agent uses OpenAI’s LLM to answer a user query. When the LLM decides to call an external tool it uses a small `get_price` function that returns a fake price for a product in a city. The agent is executed with `AgentExecutor.stream` so the output appears token‑by‑token in the console. + +## How to run + +```bash +# install dependencies +pip install -r requirements.txt + +# run the example +python main.py +``` + +The script will output the streamed response followed by the final result. + +--- + +Feel free to experiment by changing the query or the tool implementation.