{
  "schema_version": 1,
  "diagram_type": "workflow",
  "meta": {"title": "健康管理 Agent 工作流", "subtitle": "6 步 Pipeline", "quality_profile": "standard"},
  "lanes": [
    {"id": "user", "label": "用户"},
    {"id": "core", "label": "编排"},
    {"id": "pipe", "label": "Pipeline 执行"},
    {"id": "data", "label": "数据层"}
  ],
  "phases": [
    {"id": "start", "label": "启动", "fromCol": 0, "toCol": 0},
    {"id": "collect", "label": "采集", "fromCol": 1, "toCol": 1},
    {"id": "process", "label": "处理", "fromCol": 2, "toCol": 3, "variant": "emphasis"},
    {"id": "done", "label": "完成", "fromCol": 4, "toCol": 4}
  ],
  "mainPath": ["u_in", "route", "s1", "s2", "s3", "s5", "s6", "u_out"],
  "nodes": [
    {"id": "u_in", "lane": "user", "col": 0, "type": "external", "label": "用户输入", "sublabel": "健康数据"},
    {"id": "route", "lane": "core", "col": 0, "type": "backend", "label": "意图识别"},
    {"id": "s1", "lane": "pipe", "col": 1, "type": "backend", "label": "S1 采集", "sublabel": "HealthFit"},
    {"id": "tcm", "lane": "data", "col": 1, "type": "database", "label": "TCM-RAG", "sublabel": "中医查询"},
    {"id": "s2", "lane": "pipe", "col": 2, "type": "backend", "label": "S2 摘要", "sublabel": "Health-Report"},
    {"id": "s3", "lane": "pipe", "col": 3, "type": "backend", "label": "S3+4 分析", "sublabel": "Score+Checkup"},
    {"id": "s5", "lane": "pipe", "col": 4, "type": "backend", "label": "S5 存档", "sublabel": "Health-Journal"},
    {"id": "s6", "lane": "pipe", "col": 4, "type": "backend", "label": "S6 跟踪", "sublabel": "Health-Manager", "yOffset": 100},
    {"id": "u_out", "lane": "user", "col": 4, "type": "external", "label": "健康报告", "sublabel": "6 份成果包"}
  ],
  "edges": [
    {"id": "e1", "from": "u_in", "to": "route", "variant": "emphasis"},
    {"id": "e2", "from": "route", "to": "s1", "label": "启动采集", "variant": "emphasis"},
    {"id": "e3", "from": "s1", "to": "tcm", "label": "并行查询中医", "variant": "dashed", "fromSide": "top", "toSide": "bottom"},
    {"id": "e4", "from": "tcm", "to": "s2", "label": "返回中医信息", "variant": "dashed", "fromSide": "right", "toSide": "left"},
    {"id": "e5", "from": "s1", "to": "s2", "variant": "default"},
    {"id": "e6", "from": "s2", "to": "s3", "variant": "default"},
    {"id": "e7", "from": "s3", "to": "s5", "variant": "default"},
    {"id": "e8", "from": "s5", "to": "s6", "variant": "default"},
    {"id": "e9", "from": "s6", "to": "u_out", "variant": "emphasis"}
  ]
}
