pipeline-service/models/pipeline_tasks.json
yumoqing 4cb406003e feat(v3.2.0): 主agent+角色agent架构 — role任务认领/问题回路
- pipeline_tasks 增加 role/claimed_by 字段+索引(存量库需ALTER)
- agent_loop 重写为角色循环:原子认领(role匹配+令牌校验)→LLM执行→交付/need_info提问
- 角色别名归一化(developer→develop等),ROLE_PROMPT改replace防花括号崩溃
- questions.py 新增问题回路:agent_ask/answer_question/forward_question/list_questions
- init.py 注册 pipeline_role_submit 与问题回路 env 接口
2026-08-05 12:58:52 +08:00

35 lines
2.0 KiB
JSON

{
"summary": [
{
"name": "pipeline_tasks",
"title": "产线任务表",
"primary": ["id"],
"catelog": "entity"
}
],
"fields": [
{"name": "id", "title": "主键ID", "type": "str", "length": 32, "nullable": "no"},
{"name": "tenant_id", "title": "租户ID", "type": "str", "length": 32, "nullable": "no"},
{"name": "pipeline_id", "title": "产线定义ID", "type": "str", "length": 32, "nullable": "no"},
{"name": "owner_id", "title": "提交人ID", "type": "str", "length": 32, "nullable": "no"},
{"name": "title", "title": "任务标题", "type": "str", "length": 255, "nullable": "no"},
{"name": "state", "title": "任务状态", "type": "str", "length": 32, "nullable": "no", "default": "submitted"},
{"name": "current_version", "title": "当前版本号", "type": "int", "nullable": "no", "default": "1"},
{"name": "params", "title": "提交参数", "type": "text"},
{"name": "role", "title": "目标角色", "type": "str", "length": 32, "nullable": "no", "default": ""},
{"name": "claimed_by", "title": "认领agent标识", "type": "str", "length": 64, "nullable": "yes"},
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"},
{"name": "updated_at", "title": "更新时间", "type": "timestamp", "nullable": "no"}
],
"indexes": [
{"name": "idx_pt_tenant", "idxtype": "index", "idxfields": ["tenant_id"]},
{"name": "idx_pt_pipeline", "idxtype": "index", "idxfields": ["pipeline_id"]},
{"name": "idx_pt_owner", "idxtype": "index", "idxfields": ["owner_id"]},
{"name": "idx_pt_state", "idxtype": "index", "idxfields": ["state"]},
{"name": "idx_pt_role", "idxtype": "index", "idxfields": ["role"]}
],
"codes": [
{"field": "state", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='task_state'"}
]
}