Files
ManuAgent/README.md
Zhu Junhao 988c0fe555 feat: 完善多模型配置与运行切换
将模型连接统一持久化管理,并支持 Agent 运行中切换模型以及中断后选择模型继续。补充配置校验、事务与前后端交互测试。
2026-09-03 10:46:25 +08:00

41 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 智造申报 Agent
面向智能工厂申报的 Harness Agent 应用。用户创建企业项目并上传可用材料Agent 完成材料检验与建设规划确认后自主调用知识库、Skill 和受控工作区生成带 Word 原生批注的 DOCX 审阅稿。
## 技术栈
- Spring Boot 3.5.16、JDK 21、AgentScope Java 2.0.1、AG-UI
- Vue 3.5、Vite、Element Plus、Vue Element Plus X
- PostgreSQL 17、Flyway
## 本地启动
```bash
docker compose --profile build-only build agent-runtime
docker compose up -d postgres
mvn -q -f server/pom.xml spring-boot:run
npm --prefix client install
npm --prefix client run dev
```
打开 <http://127.0.0.1:5173>,本地默认账号为 `admin / admin123`
模型连接只能在“模型配置”页面新增并持久化到 PostgreSQLAPI Key 会使用 `APP_MASTER_KEY`
环境变量提供的主密钥加密后保存。`dashscope_key.txt` 仅供百炼知识库使用,不参与模型配置。
启动后端前必须设置模型密钥加密主密钥:
```powershell
$env:APP_MASTER_KEY = '<使用独立生成的高强度密钥>'
```
## 验证
```bash
mvn -q -f server/pom.xml test
npm --prefix client run test -- --run
npm --prefix client run build
```
产品、数据库与验收设计见 [docs](docs/)。内置 Skill 与资源由 Flyway 种子迁移写入数据库,无需额外导入文件。