Spaces:
Runtime error
Runtime error
File size: 376 Bytes
8bb069b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | from typing import Any, Dict, Optional
from pydantic import BaseModel, Field
class Observation(BaseModel):
task_id: str
current_code: str
test_results: Dict[str, Any]
feedback: str
step: int
max_steps: int
score: float
class Action(BaseModel):
code: str
class Reward(BaseModel):
value: float
correctness: float
efficiency: float
|