fix: delete agent 500 error + dynamic personality + deployment guide
- Fix delete agent 500: clean up FK records (agent_llm_logs, permissions, schedules, executions, team_members) and unbind goals/tasks before delete - Remove hardcoded personality templates in Android, replace with dynamic system prompt generation from name + description - Set promptSectionsEnabled=false to bypass PromptComposer for personality - Add Tencent Cloud Linux deployment guide (Docker Compose) - Accumulated backend service updates, frontend UI fixes, Android app changes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -356,6 +356,7 @@ Content-Type: application/json
|
||||
| 插件 | `/plugins` | 10 | 插件 CRUD/市场/安装/开关 |
|
||||
| 编排模板 | `/orchestration-templates` | 5 | 多 Agent 编排模板 CRUD |
|
||||
| 平台模板 | `/platform` | 4 | 场景模板/快捷创建 |
|
||||
| 场景契约 | `/scene-contracts` | 8 | 统一 DSL 契约 CRUD/预设/prompt 生成 |
|
||||
| 节点模板 | `/node-templates` | 6 | 节点配置模板 CRUD |
|
||||
| 节点测试 | `/nodes` | 1 | 单节点调试 |
|
||||
| 审批 | `/approval` | 2 | 审批查询/决议 |
|
||||
@@ -370,6 +371,58 @@ Content-Type: application/json
|
||||
|
||||
---
|
||||
|
||||
## 场景契约模块 `/api/v1/scene-contracts`
|
||||
|
||||
统一 DSL 输入契约 API,定义标准输入格式(目标/约束/产物/验收),供模板复用。
|
||||
|
||||
### 预置契约
|
||||
|
||||
| 方法 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| GET | `/scene-contracts/presets` | 列出 11 个预置契约元数据 |
|
||||
| GET | `/scene-contracts/presets/{contract_id}` | 预置契约完整内容 |
|
||||
|
||||
预置契约 ID:`contract_customer_service` / `contract_dev_codegen` / `contract_ops_log_analysis` / `contract_learning_assistant` / `contract_pr_review` / `contract_daily_report` / `contract_interview_scheduler` / `contract_competitor_monitor` / `contract_test_report` / `contract_onboarding_guide` / `contract_risk_alert`
|
||||
|
||||
### 用户契约 CRUD
|
||||
|
||||
| 方法 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| GET | `/scene-contracts` | 用户契约列表 |
|
||||
| POST | `/scene-contracts` | 创建自定义契约 |
|
||||
| GET | `/scene-contracts/{id}` | 契约详情(含预置) |
|
||||
| PUT | `/scene-contracts/{id}` | 更新契约 |
|
||||
| DELETE | `/scene-contracts/{id}` | 删除契约 |
|
||||
|
||||
### DSL 操作
|
||||
|
||||
| 方法 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| POST | `/scene-contracts/generate-prompt` | 从契约生成 system prompt |
|
||||
| POST | `/scene-contracts/evaluate` | 生成验收评估 prompt |
|
||||
| POST | `/scene-contracts/validate-input` | 根据契约验证用户输入 |
|
||||
|
||||
### 契约数据结构
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "契约名称",
|
||||
"goal": "场景目标描述",
|
||||
"role": "Agent 扮演的角色",
|
||||
"constraints": ["约束1", "约束2"],
|
||||
"forbidden_actions": ["禁止事项"],
|
||||
"deliverables": [{"name": "产出物", "format": "markdown", "description": "描述"}],
|
||||
"acceptance_criteria": ["验收条件1"],
|
||||
"examples": [{"input": "输入示例", "output": "输出示例"}],
|
||||
"category": "分类",
|
||||
"tags": ["标签"],
|
||||
"input_schema": {},
|
||||
"output_schema": {}
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 健康检查
|
||||
|
||||
```http
|
||||
|
||||
Reference in New Issue
Block a user