Spaces:
Sleeping
Sleeping
File size: 660 Bytes
54a19c9 03a7eb9 54a19c9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | from pydantic import BaseModel
from typing import List, Optional, Dict, Any
class CodeArenaObservation(BaseModel):
buggy_code: str
error_log: str
test_results: str
previous_attempts: List[str]
class CodeArenaAction(BaseModel):
proposed_fix: Optional[str] = None
action: Optional[str] = None
class TaskInfo(BaseModel):
task_id: str
difficulty: str
description: str
buggy_code: str
test_code: str
optimal_time_seconds: float
class ExecutionResult(BaseModel):
compile_success: bool
runtime_errors: str
test_passed: int
test_total: int
execution_time_seconds: float
success: bool
|