- 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 接口
33 lines
1.7 KiB
JSON
33 lines
1.7 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "pipeline_agent_questions",
|
|
"title": "角色agent问题回路表",
|
|
"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": "task_id", "title": "任务ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "from_role", "title": "提问角色", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "question", "title": "问题内容", "type": "text"},
|
|
{"name": "context", "title": "问题上下文(JSON)", "type": "text"},
|
|
{"name": "answer", "title": "回答内容", "type": "text"},
|
|
{"name": "answered_by", "title": "回答人", "type": "str", "length": 64, "nullable": "yes"},
|
|
{"name": "answer_source", "title": "回答来源", "type": "str", "length": 16, "nullable": "yes"},
|
|
{"name": "status", "title": "问题状态", "type": "str", "length": 32, "nullable": "no", "default": "pending"},
|
|
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"},
|
|
{"name": "updated_at", "title": "更新时间", "type": "timestamp", "nullable": "no"}
|
|
],
|
|
"indexes": [
|
|
{"name": "idx_paq_tenant", "idxtype": "index", "idxfields": ["tenant_id"]},
|
|
{"name": "idx_paq_task", "idxtype": "index", "idxfields": ["task_id"]},
|
|
{"name": "idx_paq_status", "idxtype": "index", "idxfields": ["status"]}
|
|
],
|
|
"codes": [
|
|
{"field": "status", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='question_state'"}
|
|
]
|
|
}
|