zaid646's picture
Initial commit: self-correcting agentic coding sandbox
c209999
Raw
History Blame Contribute Delete
375 Bytes
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] = {}