-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodels.py
More file actions
21 lines (17 loc) · 716 Bytes
/
Copy pathmodels.py
File metadata and controls
21 lines (17 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from pydantic import BaseModel
class File(BaseModel):
name: str
content: str
class RequirementsGatheringEvent(BaseModel):
all_details_gathered: bool
question: str
project_type: str # "Streamlit" or "FastAPI"
requirements: str # Accumulated user requirements
class CodeGenerationEvent(BaseModel):
generated_code: list[File] # List of File objects
run_command: str # Command to run the application
class ProjectAnalysisEvent(BaseModel):
project_structure: str # Description of project structure and key files
project_type: str # "Streamlit" or "FastAPI"
main_features: str # Summary of main features
suggested_updates: list[str] # Suggested potential updates