From 840fb21754f0f34418b97adf1918acfa21f04abe Mon Sep 17 00:00:00 2001 From: balabanovan530 <175+balabanovan530@noreply.localhost> Date: Thu, 28 May 2026 11:28:25 +0000 Subject: [PATCH] Add README.md --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c6973af --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# Shopping Planner Agent + +## Prerequisites +- Python 3.10 or newer +- A local LLM endpoint (e.g., LM Studio, Ollama) running at `http://localhost:1234/v1`. +- The model name should be set in `agent.py` where `model="<название модели в LM Studio>"`. + +## Installation +```bash +python -m venv .venv +source .venv/bin/activate # On Windows use .venv\Scripts\activate +pip install -r requirements.txt +``` + +## Running the Agent +```bash +python agent.py +``` +You will be prompted to enter a query. The agent will stream tokens to the console incrementally, separating each step with `--- --- ---`. + +## Example +``` +Введите запрос: Какой у меня бюджет на продукты в Казани? +get_price({'product': 'молоко', 'city': 'Казань'})--- --- --- +... (streamed tokens) ... +--- --- --- +``` + +Ensure that the endpoint URL and model name match your local setup. \ No newline at end of file