Files
pj0235-eai_agentplatform/README.md
T
eaiadmin 011f722999 feat: 专员 JSON 配置体系 + 配图提示词规则重构
- 新增配图提示词 JSON 规则(image_prompt.json):封面图 + 每 500 字按字数分布
- 新增 Go 配置加载器(weixin_public_account_image_prompt_config.go):从嵌入的 spec 目录读取 JSON 配置
- 新增 weixin_public_account 完整 spec 目录:skill.md, workflow.json, domains.json, policy.json, validators/
- 新增 pj0012 参考文件(pj0012-wechat-image-spec.md):配图规则 + 专员 JSON 定义体系
- 产物 Tab 添加下载按钮 + 整体导出区
- 修复前端 Markdown 渲染 bug + 步骤消息分段问题

所有专员定义向 JSON 配置迁移,以 weixin_public_account 为样板。
2026-09-24 23:01:06 +08:00

53 lines
2.0 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.
# EAI AgentPlatform
智能 Agent 平台 — 基于 Go + Vue 3 构建。
## 快速启动
```bash
# 开发环境启动(前端 10231 + 后端 10232)
./start_dev_10231_10232.sh
```
## 端口说明
| 端口 | 服务 | 说明 |
|--------|--------------------------------|----------------------------|
| 10231 | 前端 Vite 开发服务器 | 本地开发,自动代理 API 请求 |
| 10232 | 后端 Go API 服务 | 本地开发端口 |
| 8080 | 外部 LLM 服务 (llamacpp) | AI 对话 API 入口 |
| 8081 | 外部 Embed 服务 (llamacpp) | 向量嵌入服务 |
| 11434 | 外部 Ollama 服务(可选) | 如使用 Ollama 路由则需运行 |
> **注意**: 8080 和 8081 是外部 AI 服务的端口,平台后端会调用它们获取 LLM 对话和向量嵌入能力。
## 配置
复制环境变量模板并修改:
```bash
cp .env.example .env
```
主要配置项见 [.env.example](.env.example)。
## 启动脚本参数
```
--force 强制释放端口(包括非本项目进程)
--skip-preflight 跳过预检查
--skip-smoke 跳过管理员登录冒烟测试
--skip-build 不重新编译后端
--help 显示帮助
```
## 环境变量
| 变量 | 默认值 | 说明 |
|-------------------------|-----------------------------------------|-----------------------|
| PORT | 8080 | 后端 API 端口 |
| EAI_DEV_BIND_HOST | 127.0.0.1 | 开发绑定地址 |
| EAI_DEV_PUBLIC_HOST | 自动检测 | 公开访问地址 |
| LLM_BASE_URL | http://127.0.0.1:8080/v1 | LLM 服务地址 |
| EMBED_MODEL | bge-m3 | 向量嵌入模型名 |