25 lines
540 B
Python
25 lines
540 B
Python
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
|