Download core/pydantic_models.py from Surajnitp/flowmarg: direct link, hf CLI and curl.
- Browser
- Download file 694 Bytes
-
https://huggingface.co/spaces/Surajnitp/flowmarg/resolve/main/core/pydantic_models.py
- Command line
-
hf download hf://spaces/Surajnitp/flowmarg/core/pydantic_models.py
-
curl -L -o pydantic_models.py https://huggingface.co/spaces/Surajnitp/flowmarg/resolve/main/core/pydantic_models.py
694 Bytes
| from pydantic import BaseModel, Field | |
| from typing import Optional, List, Dict | |
| class PlannerOutput(BaseModel): | |
| chainage: Optional[float] = None | |
| alignment: Optional[str] = None | |
| fields: List[str] = Field(default_factory=list) | |
| standard_id: Optional[str] = "NR/L2/TRK/2500" | |
| action: str = Field(..., pattern="^(lookup|compliance|why|design|definition|update)$") | |
| comparison_value: Optional[float] = None | |
| new_parameter: Optional[Dict[str, float]] = None | |
| class VerificationReport(BaseModel): | |
| verdict: str # "PASS", "FAIL_CORRECTED", "QUESTIONABLE" | |
| issues_found: List[str] = Field(default_factory=list) | |
| corrected_answer: str | |
| verification_summary: str | |