ReAct AI Agent from Scratch using DeepSeek: Handling Memory & Tools without Frameworks
# ReAct AI Agent from Scratch using DeepSeek 🐳 This repository contains a **ReAct (Reasoning + Acting) AI agent** built from scratch using **Python** and **DeepSeek**. For an in-depth explanation of this agent implementation read my medium article: [ReAct AI Agent from Scratch using DeepSeek: Handling Memory & Tools without Frameworks](https://ai.gopubby.com/react-ai-agent-from-scratch-using-deepseek-handling-memory-tools-without-frameworks-cabda9094273) ## 📌 Features ✅ **Reasoning Loop** built from scratch with prompt-based control ✅ **Memory Management** using 🤗Transformers library to count tokens in formatted messages ✅ **Tool integration** with a scalable tool environment. Not using function-calling API features ✅ **Streamlit UI** to interact with the agent and display its responses and reasoning process ✅ **FastAPI backend** for handling chat requests from Streamlit <br> ## 🔧 How to Set Up 1️⃣ **Clone the repository** ```bash git clone https://github.com/Wencho8/ReAct-AI-Agent-from-Scratch-using-DeepSeek.git cd ReAct-AI-Agent-from-Scratch-using-DeepSeek ``` 2️⃣ **Set up environment variables** Copy the example environment file and configure your API keys: ```bash cp .env.example .env ``` 3️⃣ **Install dependencies** ```bash pip install -r requirements.txt ``` <br> ## 🚀 How to Run ### 🖥️ Running from the Terminal If you'd like to run the agent directly from the terminal without using the UI: ```bash cd Agent python agent.py ``` This will start the agent, allowing you to interact with it via the command line. ### 🌐 Using the UI 1️⃣ ***Start the FastAPI Backend*** ```bash cd Agent python -m uvicorn app:app --reload ``` 2️⃣ ***Start the Streamlit UI*** ```bash python -m streamlit run chat_ui.py ```
HAL 分层混合模型工作流 — 强模型(Claude)负责理解/拆解/验收,低成本模型(DeepSeek)负责检索/提取/清洗。Hermes Agent skill。
An LLM agent fine-tuned on DeepSeek for spaced repetition, dynamically integrating knowledge points based on the Ebbinghaus forgetting curve.
基于 STM32F103 构建的端到端 AI 智能手表生态。自研“零重定位”原生机器码动态加载引擎与页面栈式 UI 框架;集成生产级 OTA 回滚保护机制与高带宽(921600 baud)串口协议栈。通过 Node.js 中继实现 DeepSeek AI 语义控制及 ASRPRO 语音全双工交互,是一个集成了分布式计算、现代存储管理与 AI Agent 的嵌入式全栈工程。
A Meta-Agent-Driven Self-Evolving Multi-Agent System for UAV Detection and Tracking
One command to run Hermes AI Agent with a browser UI. Zero prerequisites. 一行命令,AI 就位。
网页应用Agent,接入DeepSeek、Mimo等模型