fix: 修复 NameError/状态污染/类型标注/统计; 补全练习与 main; 新增 config/.gitignore/requirements; 文档统一
This commit is contained in:
+13
-5
@@ -76,7 +76,7 @@ jaspersoft-agent-learn/
|
||||
|
||||
```bash
|
||||
# 克隆项目
|
||||
git clone https://www.1415243231.top/gitea/panda/jaspersoft-agent-learn.git
|
||||
git clone https://gitea.1415243231.top/panda/jaspersoft-agent-learn.git
|
||||
cd jaspersoft-agent-learn
|
||||
|
||||
# 创建虚拟环境(Python 3.9+)
|
||||
@@ -86,7 +86,7 @@ source venv/bin/activate # Linux/Mac
|
||||
.\venv\Scripts\activate # Windows
|
||||
|
||||
# 安装依赖
|
||||
pip install python-dotenv openai
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
### 2. 配置环境变量
|
||||
@@ -110,6 +110,14 @@ python main.py
|
||||
# Step 03: 简单 Agent
|
||||
cd ../step_03_simple_agent
|
||||
python main.py
|
||||
|
||||
# Step 04: 记忆系统
|
||||
cd ../step_04_memory
|
||||
python main.py
|
||||
|
||||
# Step 05-07: 进阶(RAG / Self-Correction / Multi-Agent)
|
||||
cd ../step_05_07_advanced
|
||||
python main.py
|
||||
```
|
||||
|
||||
---
|
||||
@@ -153,7 +161,7 @@ Step 07: 协作 → 多Agent
|
||||
### 3. 零依赖入门
|
||||
|
||||
- Step 01~03: 仅需 Python 标准库
|
||||
- Step 04+: 只需 `python-dotenv`
|
||||
- Step 04+:仅标准库(如需 LLM 调用,见 `config.py` 加载 `.env`)
|
||||
- 无需 LangChain、LangGraph 等框架
|
||||
|
||||
---
|
||||
@@ -250,8 +258,8 @@ class StateManager:
|
||||
## 🔗 相关资源
|
||||
|
||||
### 内部项目
|
||||
- **JasperSoft 主项目**: `D:\Idea Project\jaspersoft` - LangGraph 实现参考
|
||||
- **日报系统**: `D:\Idea Project\daily_on_work` - 自动化工作流
|
||||
- **JasperSoft 主项目**: 同组织下的 `jaspersoft` 仓库 - LangGraph 实现参考
|
||||
- **日报系统**: 同组织下的 `daily_on_work` 仓库 - 自动化工作流
|
||||
|
||||
### 外部资源
|
||||
- [LangGraph 文档](https://langchain-ai.github.io/langgraph/)
|
||||
|
||||
Reference in New Issue
Block a user