- 预设新增 qa-write-cases 并行侧分支、qa-run-e2e 汇入点与三选一测试决策; 提测改为里程碑,dev-plan 补充详细设计/任务清单/自测用例说明 - 引擎支持 parallel 分支、join 汇入、milestone 节点与任意选项决策 - 更新校验、Mermaid 渲染、schema、README 与 AGENTS 模块职责 - 预览图同步新节点、并行/打回走线与测试验收阶段 验证:agents-workflow-engine/tests/test_units.py 24/24;./.agents/verify.sh 67/67 文档同步检查:已更新(引擎 README、根 README、AGENTS.md、schema)
64 lines
2.0 KiB
JSON
64 lines
2.0 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"title": "agents workflow graph",
|
|
"type": "object",
|
|
"required": ["id", "entry", "lanes", "nodes", "edges"],
|
|
"properties": {
|
|
"id": { "type": "string" },
|
|
"entry": { "type": "string" },
|
|
"lanes": { "type": "array" },
|
|
"models": { "type": "object" },
|
|
"loops": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": ["id", "maxIterations", "backEdges"],
|
|
"properties": {
|
|
"id": { "type": "string" },
|
|
"maxIterations": { "type": "integer" },
|
|
"backEdges": { "type": "array", "items": { "type": "string" } }
|
|
}
|
|
}
|
|
},
|
|
"nodes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": ["id", "actor", "kind"],
|
|
"properties": {
|
|
"id": { "type": "string" },
|
|
"actor": { "enum": ["human", "master", "subagent"] },
|
|
"kind": {
|
|
"enum": ["entry", "human_input", "action", "gate", "decision", "milestone", "end"]
|
|
},
|
|
"title": { "type": "string" },
|
|
"skill": { "type": "string" },
|
|
"model": { "type": "string" },
|
|
"options": { "type": "array", "items": { "type": "string" } },
|
|
"batch": { "type": "boolean" },
|
|
"repeatsBatch": { "type": "string" },
|
|
"once": { "type": "boolean" },
|
|
"join": { "type": "boolean" },
|
|
"sealed": { "type": "boolean" },
|
|
"note": { "type": "array", "items": { "type": "string" } }
|
|
}
|
|
}
|
|
},
|
|
"edges": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": ["id", "from", "to"],
|
|
"properties": {
|
|
"id": { "type": "string" },
|
|
"from": { "type": "string" },
|
|
"to": { "type": "string" },
|
|
"when": { "type": "string" },
|
|
"back": { "type": "boolean" },
|
|
"parallel": { "type": "boolean" }
|
|
}
|
|
}
|
|
},
|
|
"extensions": { "type": "array" }
|
|
}
|
|
} |