24f3001764/llm_code_deployment-1
0
1from pydantic import BaseModel, Field2from typing import List, Optional3 4 5class Attachment(BaseModel):6 """Attachment with data URI"""7 name: str8 url: str # data URI format9 10 11class TaskRequest(BaseModel):12 """Incoming task request from instructors"""13 email: str14 secret: str15 task: str16 round: int = Field(ge=1, le=2)17 nonce: str18 brief: str19 checks: List[str]20 evaluation_url: str21 attachments: Optional[List[Attachment]] = []22 23 24class EvaluationPayload(BaseModel):25 """Payload to send to evaluation_url"""26 email: str27 task: str28 round: int29 nonce: str30 repo_url: str31 commit_sha: str32 pages_url: str33 34 35class APIResponse(BaseModel):36 """Immediate response to task request"""37 status: str38 message: str39 task: str40 round: int41 