2026-06-04 19:19:09 +00:00
2026-06-04 19:18:51 +00:00
2026-06-04 19:18:57 +00:00
2026-06-02 07:03:41 +00:00
2026-06-04 19:19:09 +00:00
2026-06-04 17:08:19 +00:00
2026-06-04 17:08:28 +00:00
2026-06-04 16:15:30 +00:00
2026-06-04 16:15:59 +00:00

Deep Agent

This repository contains a minimal implementation of a Deep Agent inspired by the Deep Agents from Scratch course. The agent can:

  1. Search the web (DuckDuckGo).
  2. Create, read and combine virtual files.
  3. Export the virtual files to the real filesystem.
  4. Use LangChain + Ollama for LLM inference.

Setup

# Install dependencies
pip install -r requirements.txt

Usage

python deep_agent.py "Write a summary of the latest Python release and store it in summary.txt"

The agent will perform the task, create virtual files, and export them to output_files/.

Architecture

  • DeepAgent class implements the agent logic.
  • search uses DuckDuckGo HTML API.
  • write_file, read_file, combine manage a simple inmemory virtual filesystem.
  • export_files writes the virtual files to disk.
  • The agent loop uses a JSONbased action protocol.

Requirements

  • Python 3.10+
  • LangChain >= 1.0.0
  • LangGraph >= 1.0.0
  • langchain_ollama
  • langchain_text_splitters
  • langchain_chroma
  • requests

Feel free to extend the agent with more actions or integrate other LLM providers.

S
Description
8. Самописный поисковый агент на основе deep agents from scratch
Readme MIT 133 KiB
Languages
Python 100%