File size: 375 Bytes
c209999
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from pydantic import BaseModel


class CodeResponse(BaseModel):
    explanation: str
    script: str
    requirements: list[str]


class CritiqueResponse(BaseModel):
    error_analysis: str
    correction_strategy: str
    confidence: float


class SandboxResult(BaseModel):
    stdout: str
    stderr: str
    exit_code: int
    success: bool
    files: dict[str, str] = {}