需求文档skill回溯专家博弈之前

This commit is contained in:
闫旭隆
2025-12-11 14:19:36 +08:00
parent 5f329d7b4c
commit f4314c3ede
117 changed files with 28969 additions and 3325 deletions

View File

@ -0,0 +1,252 @@
<mxfile host="Electron" agent="draw.io" version="28.0.6">
<diagram id="phase2-parallel-execution" name="Phase 2 并行执行流程">
<mxGraphModel dx="1800" dy="1200" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1200" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<!-- 标题 -->
<mxCell id="title" value="Phase 2: 工程类会议纪要生成 - 并行执行流程图" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=20;fontStyle=1;fontColor=#333333;" vertex="1" parent="1">
<mxGeometry x="400" y="20" width="500" height="40" as="geometry" />
</mxCell>
<!-- ==================== Phase 1 输出 ==================== -->
<mxCell id="phase1_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;strokeWidth=2;dashed=1;" vertex="1" parent="1">
<mxGeometry x="40" y="80" width="1520" height="80" as="geometry" />
</mxCell>
<mxCell id="phase1_title" value="Phase 1 输出数据(所有 Agent 的输入依赖)" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontSize=14;fontStyle=1;fontColor=#666666;" vertex="1" parent="1">
<mxGeometry x="60" y="85" width="400" height="25" as="geometry" />
</mxCell>
<mxCell id="data_p0" value="P0任务列表" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="60" y="115" width="120" height="35" as="geometry" />
</mxCell>
<mxCell id="data_problems" value="周报问题列表" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="200" y="115" width="120" height="35" as="geometry" />
</mxCell>
<mxCell id="data_lastweek" value="上周P0任务" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="340" y="115" width="120" height="35" as="geometry" />
</mxCell>
<mxCell id="data_members" value="成员周报数据" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="480" y="115" width="120" height="35" as="geometry" />
</mxCell>
<mxCell id="data_date" value="会议日期/截止时间" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="620" y="115" width="140" height="35" as="geometry" />
</mxCell>
<!-- ==================== 步骤 2.1 ==================== -->
<mxCell id="step_2_1" value="步骤 2.1: 会议信息&#xa;【主窗口直接生成】" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontStyle=1;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="40" y="190" width="180" height="50" as="geometry" />
</mxCell>
<!-- ==================== 步骤 2.2 并行 Agent 提取 ==================== -->
<mxCell id="parallel_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;strokeWidth=3;" vertex="1" parent="1">
<mxGeometry x="40" y="270" width="1520" height="280" as="geometry" />
</mxCell>
<mxCell id="parallel_title" value="步骤 2.2: 并行 Agent 提取 ⭐⭐⭐【关键优化】" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontSize=16;fontStyle=1;fontColor=#1565C0;" vertex="1" parent="1">
<mxGeometry x="60" y="280" width="500" height="30" as="geometry" />
</mxCell>
<mxCell id="parallel_note" value="在单条消息中同时发起所有 Task 调用,实现真正的并行执行" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontSize=11;fontColor=#666666;" vertex="1" parent="1">
<mxGeometry x="60" y="305" width="500" height="20" as="geometry" />
</mxCell>
<!-- Agent A -->
<mxCell id="agent_a_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="60" y="340" width="200" height="190" as="geometry" />
</mxCell>
<mxCell id="agent_a_title" value="Agent A: 提取项目进展" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="60" y="345" width="200" height="25" as="geometry" />
</mxCell>
<mxCell id="agent_a_input" value="输入P0任务列表" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="70" y="375" width="180" height="20" as="geometry" />
</mxCell>
<mxCell id="agent_a_output" value="输出:&#xa;- 项目名称&#xa;- 实际进展&#xa;- 存在问题&#xa;- 领导评价" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="70" y="395" width="180" height="80" as="geometry" />
</mxCell>
<mxCell id="agent_a_dest" value="→ 步骤 2.3" style="text;html=1;strokeColor=#d6b656;fillColor=#fff2cc;align=center;verticalAlign=middle;fontSize=10;fontStyle=1;rounded=1;" vertex="1" parent="1">
<mxGeometry x="100" y="500" width="120" height="20" as="geometry" />
</mxCell>
<!-- Agent B -->
<mxCell id="agent_b_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="280" y="340" width="200" height="190" as="geometry" />
</mxCell>
<mxCell id="agent_b_title" value="Agent B: 提取问题讨论" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="280" y="345" width="200" height="25" as="geometry" />
</mxCell>
<mxCell id="agent_b_input" value="输入:周报问题列表、截止时间" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="290" y="375" width="180" height="20" as="geometry" />
</mxCell>
<mxCell id="agent_b_output" value="输出:&#xa;- 问题标题&#xa;- 问题描述&#xa;- 解决方案&#xa;- 责任人/截止时间" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="290" y="395" width="180" height="80" as="geometry" />
</mxCell>
<mxCell id="agent_b_dest" value="→ 步骤 2.4" style="text;html=1;strokeColor=#82b366;fillColor=#d5e8d4;align=center;verticalAlign=middle;fontSize=10;fontStyle=1;rounded=1;" vertex="1" parent="1">
<mxGeometry x="320" y="500" width="120" height="20" as="geometry" />
</mxCell>
<!-- Agent C -->
<mxCell id="agent_c_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="500" y="340" width="200" height="190" as="geometry" />
</mxCell>
<mxCell id="agent_c_title" value="Agent C: 提取任务安排" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="500" y="345" width="200" height="25" as="geometry" />
</mxCell>
<mxCell id="agent_c_input" value="输入上周P0任务、截止时间" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="510" y="375" width="180" height="20" as="geometry" />
</mxCell>
<mxCell id="agent_c_output" value="输出:&#xa;- 任务名称&#xa;- 负责人&#xa;- 任务描述&#xa;- 优先级/截止时间" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="510" y="395" width="180" height="80" as="geometry" />
</mxCell>
<mxCell id="agent_c_dest" value="→ 步骤 2.5" style="text;html=1;strokeColor=#6c8ebf;fillColor=#dae8fc;align=center;verticalAlign=middle;fontSize=10;fontStyle=1;rounded=1;" vertex="1" parent="1">
<mxGeometry x="540" y="500" width="120" height="20" as="geometry" />
</mxCell>
<!-- Agent D1-Dn -->
<mxCell id="agent_d_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">
<mxGeometry x="720" y="340" width="340" height="190" as="geometry" />
</mxCell>
<mxCell id="agent_d_title" value="Agent D1-Dn: 提取成员反馈每成员1个并行" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#9673a6;" vertex="1" parent="1">
<mxGeometry x="720" y="345" width="340" height="25" as="geometry" />
</mxCell>
<mxCell id="agent_d_input" value="输入:成员姓名、周报信息" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="730" y="375" width="320" height="20" as="geometry" />
</mxCell>
<mxCell id="agent_d_sub" value="D1: 郝倩玉 D2: 陶西平 D3: 闫旭隆 D4: 江争达" style="text;html=1;strokeColor=#9673a6;fillColor=#f5f5f5;align=center;verticalAlign=middle;fontSize=10;rounded=1;" vertex="1" parent="1">
<mxGeometry x="740" y="400" width="300" height="25" as="geometry" />
</mxCell>
<mxCell id="agent_d_output" value="输出:&#xa;- 成员姓名&#xa;- 反馈列表(类型+内容)" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="730" y="430" width="320" height="50" as="geometry" />
</mxCell>
<mxCell id="agent_d_dest" value="→ 步骤 2.6" style="text;html=1;strokeColor=#9673a6;fillColor=#e1d5e7;align=center;verticalAlign=middle;fontSize=10;fontStyle=1;rounded=1;" vertex="1" parent="1">
<mxGeometry x="830" y="500" width="120" height="20" as="geometry" />
</mxCell>
<!-- Agent E -->
<mxCell id="agent_e_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">
<mxGeometry x="1080" y="340" width="200" height="190" as="geometry" />
</mxCell>
<mxCell id="agent_e_title" value="Agent E: 提取关键决策" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#b85450;" vertex="1" parent="1">
<mxGeometry x="1080" y="345" width="200" height="25" as="geometry" />
</mxCell>
<mxCell id="agent_e_input" value="输入:无特殊依赖" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="1090" y="375" width="180" height="20" as="geometry" />
</mxCell>
<mxCell id="agent_e_output" value="输出:&#xa;- 决策内容&#xa;- 相关背景" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="1090" y="395" width="180" height="80" as="geometry" />
</mxCell>
<mxCell id="agent_e_dest" value="→ 步骤 2.7" style="text;html=1;strokeColor=#b85450;fillColor=#f8cecc;align=center;verticalAlign=middle;fontSize=10;fontStyle=1;rounded=1;" vertex="1" parent="1">
<mxGeometry x="1120" y="500" width="120" height="20" as="geometry" />
</mxCell>
<!-- 并行标记 -->
<mxCell id="parallel_icon" value="⚡ 并行执行" style="text;html=1;strokeColor=#1565C0;fillColor=#bbdefb;align=center;verticalAlign=middle;fontSize=14;fontStyle=1;rounded=1;" vertex="1" parent="1">
<mxGeometry x="1340" y="420" width="120" height="40" as="geometry" />
</mxCell>
<!-- ==================== 主窗口合并阶段 ==================== -->
<mxCell id="merge_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;strokeWidth=2;dashed=1;" vertex="1" parent="1">
<mxGeometry x="40" y="580" width="1520" height="200" as="geometry" />
</mxCell>
<mxCell id="merge_title" value="主窗口合并阶段(串行执行,有数据依赖)" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontSize=14;fontStyle=1;fontColor=#9673a6;" vertex="1" parent="1">
<mxGeometry x="60" y="590" width="400" height="25" as="geometry" />
</mxCell>
<!-- 步骤 2.3 -->
<mxCell id="step_2_3" value="步骤 2.3&#xa;重点项目进展汇总&#xa;【合并 Agent A + 周报】" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontStyle=0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="60" y="630" width="180" height="60" as="geometry" />
</mxCell>
<!-- 步骤 2.4 -->
<mxCell id="step_2_4" value="步骤 2.4&#xa;问题及解决方案&#xa;【合并 Agent B + 周报】" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontStyle=0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="280" y="630" width="180" height="60" as="geometry" />
</mxCell>
<!-- 步骤 2.5 -->
<mxCell id="step_2_5" value="步骤 2.5&#xa;下周工作安排&#xa;【合并 Agent C + 周报】&#xa;→ 生成 next_week_tasks" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontStyle=1;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="500" y="630" width="200" height="70" as="geometry" />
</mxCell>
<!-- 步骤 2.6 -->
<mxCell id="step_2_6" value="步骤 2.6&#xa;成员工作进展&#xa;【Agent D + next_week_tasks】" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontStyle=0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="740" y="630" width="200" height="60" as="geometry" />
</mxCell>
<!-- 步骤 2.7 -->
<mxCell id="step_2_7" value="步骤 2.7&#xa;会议总结&#xa;【Agent E + next_week_tasks】" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="980" y="630" width="180" height="60" as="geometry" />
</mxCell>
<!-- 依赖箭头 -->
<mxCell id="dep_arrow_1" value="" style="endArrow=classic;html=1;strokeColor=#6c8ebf;strokeWidth=2;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="700" y="665" as="sourcePoint" />
<mxPoint x="740" y="665" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="dep_arrow_2" value="" style="endArrow=classic;html=1;strokeColor=#6c8ebf;strokeWidth=2;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="940" y="665" as="sourcePoint" />
<mxPoint x="980" y="665" as="targetPoint" />
</mxGeometry>
</mxCell>
<!-- 数据流说明 -->
<mxCell id="data_flow_note" value="next_week_tasks" style="text;html=1;strokeColor=#6c8ebf;fillColor=#dae8fc;align=center;verticalAlign=middle;fontSize=9;rounded=1;" vertex="1" parent="1">
<mxGeometry x="600" y="720" width="100" height="20" as="geometry" />
</mxCell>
<mxCell id="data_flow_arrow_1" value="" style="endArrow=classic;html=1;strokeColor=#6c8ebf;strokeWidth=1;dashed=1;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="650" y="720" as="sourcePoint" />
<mxPoint x="840" y="700" as="targetPoint" />
<Array as="points">
<mxPoint x="700" y="720" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="data_flow_arrow_2" value="" style="endArrow=classic;html=1;strokeColor=#6c8ebf;strokeWidth=1;dashed=1;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="700" y="720" as="sourcePoint" />
<mxPoint x="1070" y="700" as="targetPoint" />
</mxGeometry>
</mxCell>
<!-- Phase 3 输出 -->
<mxCell id="phase3_box" value="Phase 3: 组装输出&#xa;→ 工程类会议纪要_{日期}.md" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontStyle=1;fontSize=12;" vertex="1" parent="1">
<mxGeometry x="1200" y="640" width="280" height="50" as="geometry" />
</mxCell>
<!-- 图例 -->
<mxCell id="legend_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#999999;dashed=1;" vertex="1" parent="1">
<mxGeometry x="40" y="810" width="600" height="80" as="geometry" />
</mxCell>
<mxCell id="legend_title" value="图例" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontSize=12;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="50" y="815" width="60" height="20" as="geometry" />
</mxCell>
<mxCell id="legend_parallel" value="并行执行区域" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="50" y="845" width="100" height="30" as="geometry" />
</mxCell>
<mxCell id="legend_serial" value="串行执行区域" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=10;dashed=1;" vertex="1" parent="1">
<mxGeometry x="170" y="845" width="100" height="30" as="geometry" />
</mxCell>
<mxCell id="legend_data" value="数据依赖" style="text;html=1;strokeColor=#6c8ebf;fillColor=#dae8fc;align=center;verticalAlign=middle;fontSize=10;rounded=1;" vertex="1" parent="1">
<mxGeometry x="290" y="850" width="80" height="20" as="geometry" />
</mxCell>
<mxCell id="legend_agent" value="Agent 输出目标" style="text;html=1;strokeColor=#666666;fillColor=#f5f5f5;align=center;verticalAlign=middle;fontSize=10;rounded=1;" vertex="1" parent="1">
<mxGeometry x="390" y="850" width="100" height="20" as="geometry" />
</mxCell>
<!-- 优化说明 -->
<mxCell id="opt_note_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e8f5e9;strokeColor=#4caf50;" vertex="1" parent="1">
<mxGeometry x="680" y="810" width="400" height="80" as="geometry" />
</mxCell>
<mxCell id="opt_note_title" value="优化效果" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#4caf50;" vertex="1" parent="1">
<mxGeometry x="690" y="815" width="100" height="20" as="geometry" />
</mxCell>
<mxCell id="opt_note_content" value="原流程:串行调用 5+ 个 Agent等待时间累加&#xa;优化后:并行调用所有 Agent等待时间 = max(单个 Agent 时间)&#xa;预期提升:减少 60-80% 的 Agent 调用等待时间" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="690" y="840" width="380" height="45" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>