From 83b95f9d38a7c7dcfb254e18f4b888492c3c078f 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: Tue, 2 Jun 2026 07:04:16 +0000 Subject: [PATCH] Update README.md --- README.md | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ab5be3..c04a164 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,42 @@ -# task-69de7223f309a98be0007e09 +# Deep Agent – Search + Virtual Files -8. Самописный поисковый агент на основе deep agents from scratch \ No newline at end of file +This repository contains a minimal **deep agent** implementation based on the +"Deep Agents from Scratch" course. The agent can: + +1. Search the web (simple Bing wrapper). +2. Create and modify files in an **in‑memory virtual file system**. +3. Read those virtual files. +4. Dump the virtual file system to the real disk at the end of the run. + +## Setup + +```bash +# Create a virtual environment (optional but recommended) +python -m venv venv +source venv/bin/activate # Windows: venv\Scripts\activate + +# Install dependencies +pip install -r requirements.txt +``` + +> **Prerequisite** – An Ollama server must be running locally with a model +> such as `llama3.1` available. + +## Usage + +```bash +python agent.py +``` + +You will be prompted to type questions. The agent will decide which tool to +use. When you are finished, type `exit`. + +The virtual files are stored in memory. To persist them, use the `DumpVirtualFS` +tool or call `dump_virtual_fs_tool("output")` from within the agent. + +## Files + +- `agent.py` – Main agent implementation. +- `virtual_fs.py` – Simple in‑memory file system. +- `requirements.txt` – Python dependencies. +- `README.md` – This documentation.