deerflow-code/offline-backend-20260512/backend/app/report_collaboration/eval/plan.py
2026-09-07 18:24:55 +08:00

58 lines
1.6 KiB
Python

"""Canonical quality-chain plan used to score directed modifications."""
from __future__ import annotations
def eval_quality_plan() -> dict:
nodes = [
{
"id": "research",
"label": "检索",
"role_key": "researcher",
"angle": "海外进展",
"output_artifact_type": "EvidenceBundle",
"depends_on": [],
},
{
"id": "verify",
"label": "核验",
"role_key": "verifier",
"output_artifact_type": "VerificationResult",
"depends_on": ["research"],
},
{
"id": "analyze",
"label": "分析",
"role_key": "analyst",
"output_artifact_type": "AngleAnalysis",
"depends_on": ["verify"],
},
{
"id": "write",
"label": "写作",
"role_key": "writer",
"output_artifact_type": "ReportSectionDraft",
"depends_on": ["analyze"],
},
{
"id": "review",
"label": "审稿",
"role_key": "reviewer",
"output_artifact_type": "ReviewDecision",
"depends_on": ["write"],
},
]
return {
"id": "plan_eval",
"nodes": nodes,
"edges": [
{"source": "research", "target": "verify"},
{"source": "verify", "target": "analyze"},
{"source": "analyze", "target": "write"},
{"source": "write", "target": "review"},
],
}
__all__ = ["eval_quality_plan"]