# agent_px **Repository Path**: hephec321/agent_px ## Basic Information - **Project Name**: agent_px - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-24 - **Last Updated**: 2026-06-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AI Agent 全栈培训项目 > 仓库地址:https://gitee.com/hephec321/agent_px.git > 适用学员:张济琨(中国科学院大学,AI 工程师/全栈开发方向) > 培训周期:8 节课,建议总学时 27 小时 > 编写日期:2026-06-25 --- ## 一、项目简介 本仓库是面向 AI Agent 全栈方向的系统化培训项目,覆盖 **LLM 调用 → LangChain → MCP 协议 → LangGraph → RAG → 全栈整合 → 工程规范 → 综合实战** 完整链路。 包含 4 个可独立运行的子项目与 1 套阶梯式培训材料: - **4 个实战项目**:`proj01_mcp_agent` / `proj02_vector_databases` / `proj03_langchain_example` / `proj04_langgraph_example` - **培训材料**:`training/` 目录下 8 节课的笔记、作业、面试题与整体规划 学员完成全部课程后可独立设计并落地「企业知识库智能助手」类 MVP,应对面试冲刺。 --- ## 二、仓库目录结构 ``` agent_px_zkd/ ├── README.md # 本文件(项目总览) ├── .gitignore # 全仓库忽略规则 │ ├── proj01_mcp_agent/ # 项目 1:MCP 多服务 + LangGraph ReAct Agent │ ├── backend/ # FastAPI + FastMCP(weather / write)+ ChatTongyi │ │ ├── api_server.py │ │ ├── weather_server.py │ │ ├── write_server.py │ │ ├── servers_config.json │ │ ├── client.py / client_simple.py │ │ └── README.md │ └── frontend/ # Vue 3 + Vite + markdown-it 聊天界面 │ ├── src/components/ChatBox.vue │ └── README.md │ ├── proj02_vector_databases/ # 项目 2:RAG 知识库问答(Milvus + DashScope) │ ├── backend/ # Flask + LangChain + Milvus + 多格式 Loader │ │ ├── server.py │ │ ├── api_integration.py │ │ ├── vector_db_manager.py │ │ ├── vector_retriever.py │ │ ├── document_loader.py │ │ └── README.md │ └── frontend/ # Vue 3 拖拽上传 + 引用来源展示 │ ├── src/components/RagChat.vue │ └── README.md │ ├── proj03_langchain_example/ # 项目 3:LangChain 1.0+ create_agent 单文件示例 │ ├── lanchain_Intelligent_assistant.py │ ├── requirements.txt │ ├── .env.example │ └── README.md │ ├── proj04_langgraph_example/ # 项目 4:LangGraph 多模式脚本案例集 │ ├── langgraph_supervisor_{1,2}.py # Supervisor 多角色客服 │ ├── langgraph_agent_{1..4}.py # ReAct / 循环检测 / review 分支 │ ├── langgraph_{3,4,5}.py # 图结构差异示例 │ ├── requirements.txt │ ├── .env.example │ └── README.md │ └── training/ # 培训材料 ├── overall_plan.md # 8 节课整体计划(学时 / 依赖 / 验收) ├── lesson_01_foundation/ # AI Agent 与大模型应用开发基础 ├── lesson_02_langchain/ # LangChain 核心与 create_agent 工程化 ├── lesson_03_mcp/ # MCP 协议与多服务工具生态 ├── lesson_04_langgraph/ # LangGraph 图式 Agent 架构 └── lesson_05_rag/ # RAG 系统与向量数据库 ``` > 子项目详细的目录结构、依赖、启动方式、接口契约、常见问题,请参阅各子项目下的 `README.md`。 --- ## 三、技术栈总览 | 维度 | 技术 | 应用项目 | | --- | --- | --- | | LLM | 通义千问 `qwen-plus`(DashScope,OpenAI 兼容协议) | proj01 / proj02 / proj03 / proj04 | | Agent 框架 | LangChain 1.0+ `create_agent` + `@tool` | proj03 / proj04 | | 图式 Agent | LangGraph `StateGraph` / `Supervisor` / `create_react_agent` | proj01 / proj04 | | 工具协议 | MCP(FastMCP,stdio / SSE)+ `langchain-mcp-adapters` | proj01 | | 向量库 | Milvus 2.4+ + DashScope `text-embedding-v1` + HuggingFace 降级 | proj02 | | 后端框架 | FastAPI(lifespan + CORS)/ Flask(蓝图) | proj01 / proj02 | | 前端框架 | Vue 3(Composition API + `