AstraWeave / src /models.py
sam2009897's picture
Initial deploy: GAIA-grade research agent
26fe5b4 verified
Raw History Blame Contribute Delete
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