init the project

This commit is contained in:
evyzacq
2026-05-25 15:09:42 +08:00
commit 7fc0e7852e
122 changed files with 14557 additions and 0 deletions
View File
+17
View File
@@ -0,0 +1,17 @@
# LangGraph 推理编排:定义 PRD → IR → TestCase 的 Agent 工作流
"""
LangGraph 流程占位,Phase 3 实现。
预期工作流节点:
1. parse_prd: 解析上传的 PRD 文档
2. extract_ir: 调用 Skill 的 extract_ir_prompt 生成 IR
3. validate_ir: 校验 IR 是否符合 Schema 与 Principles
4. human_review: 等待人工确认(中断点)
5. generate_cases: 调用 Skill 的 gen_cases_prompt 生成用例
6. export: 格式化导出
"""
# TODO: Phase 3 实现 LangGraph StateGraph
# from langgraph.graph import StateGraph, END
# from langgraph.checkpointing import MemorySaver
+9
View File
@@ -0,0 +1,9 @@
# Mock 推理引擎:Phase 2 空壳运行时的占位
async def mock_reasoning_chain(prd_text: str, skill_name: str = "default") -> dict:
"""模拟完整的推理链路,返回占位数据"""
return {
"ir_yaml": f"# Mock IR generated for PRD ({len(prd_text)} chars)\nfeatures: []",
"validation": {"valid": True, "issues": []},
"testcases": [],
}