Download src/dev_pilot/dto/sdlc_request.py from msaifee/DevPilot: direct link, hf CLI and curl.
- Browser
- Download file 1.69 kB
-
https://huggingface.co/spaces/msaifee/DevPilot/resolve/main/src/dev_pilot/dto/sdlc_request.py
- Command line
-
hf download hf://spaces/msaifee/DevPilot/src/dev_pilot/dto/sdlc_request.py
-
curl -L -o sdlc_request.py https://huggingface.co/spaces/msaifee/DevPilot/resolve/main/src/dev_pilot/dto/sdlc_request.py
1.69 kB
| from pydantic import BaseModel, Field | |
| from typing import Optional | |
| class SDLCRequest(BaseModel): | |
| project_name: str = Field(..., | |
| example="Ecommerce Platform", | |
| description="The name of the project") | |
| requirements: Optional[list[str]] = Field(None, | |
| example=["Users can browser the products", | |
| "Users should be able to add the product in the cart", | |
| "Users should be able to do the payment", | |
| "Users should be able to see their order history"], | |
| description="The list of requirements for the project") | |
| task_id: Optional[str] = Field(None, | |
| example="sdlc-session-5551defc", | |
| description="The task id of the workflow session") | |
| next_node: Optional[str] = Field(None, | |
| example="review_user_stories", | |
| description="The node to be executed in the workflow. Pass the node information returned from previous API") | |
| status: Optional[str] = Field(None, | |
| example="approved or feedback", | |
| description="The status of the review") | |
| feedback: Optional[str] = Field(None, | |
| example="The user stories are good but need to be more specific", | |
| description="The feedback for the review") | |