Files
demo2-qwen/app/models.py

25 lines
540 B
Python
Raw Normal View History

2026-03-04 13:56:08 +08:00
from typing import TypedDict, List
class RequirementAnalysis(TypedDict):
"""需求分析结果"""
functional_requirements: List[str]
non_functional_requirements: List[str]
acceptance_criteria: List[str]
edge_cases: List[str]
summary: str
class TestCaseResult(TypedDict):
"""测试用例结果"""
test_cases: List[dict]
test_strategy: str
coverage_plan: str
class CodeGenerationResult(TypedDict):
"""代码生成结果"""
java_code: str
unit_tests: str
implementation_notes: str