Spaces:
Sleeping
Sleeping
File size: 623 Bytes
a2ae9c3 | 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 30 31 | from dataclasses import dataclass, field
from typing import List
@dataclass
class Observation:
code: str
task: str
history: List[str]
task_id: int
language: str = "javascript"
difficulty: str = "easy"
category: str = "syntax"
@dataclass
class Action:
action_type: str # "identify" or "fix"
content: str # explanation or corrected code
@dataclass
class EpisodeState:
current_task_id: int
current_task_difficulty: str
current_task_category: str
phase: str
step: int
total_reward: float
done: bool
history: List[str] = field(default_factory=list) |