Spaces:
Paused
Paused
Download src/models.py from sam2009897/AstraWeave: direct link, hf CLI and curl.
- Browser
- Download file 732 Bytes
-
https://huggingface.co/spaces/sam2009897/AstraWeave/resolve/main/src/models.py
- Command line
-
hf download hf://spaces/sam2009897/AstraWeave/src/models.py
-
curl -L -o models.py https://huggingface.co/spaces/sam2009897/AstraWeave/resolve/main/src/models.py
732 Bytes
| from pydantic import BaseModel | |
| from typing import Optional | |
| class Question(BaseModel): | |
| text: str | |
| file_path: Optional[str] = None | |
| file_type: Optional[str] = None | |
| class PlanStep(BaseModel): | |
| step_id: int | |
| action: str | |
| tool: str | |
| input: str | |
| class Plan(BaseModel): | |
| question: str | |
| task_type: str | |
| steps: list[PlanStep] | |
| class Evidence(BaseModel): | |
| source: str | |
| facts: list[str] | |
| confidence: str # high, medium, low | |
| class Answer(BaseModel): | |
| raw: str | |
| normalized: str | |
| verification: str # PASS or FAIL: reason | |
| class Trace(BaseModel): | |
| task_id: str | |
| question: str | |
| plan: Plan | |
| evidences: list[Evidence] | |
| answer: Answer | |
| tool_calls: int | |
| duration_ms: int | |