Spaces:
Sleeping
Sleeping
Update models.py
Browse files1 unmodified line23456789101112131415161718192021221 unmodified linefrom typing import List, Optionalclass Observation(BaseModel):pr_code: strcomments: List[str]agent_comment: Optional[str] = Nonestep: int = 0done: bool = Falseclass Action(BaseModel):action_type: str # "write_comment", "skip", "done"comment_text: Optional[str] = Noneclass Reward(BaseModel):value: floatclass State(BaseModel):pr_code: strcomments: List[str]agent_comment: Optional[str]step: int1 unmodified line2345678910111213141516171819202122232425261 unmodified linefrom typing import List, Optionalclass Observation(BaseModel):pr_title: str # title of the pull requestpr_description: str # description of the changecode_snippet: str # the code under reviewcomments: List[str] # existing commentsagent_comment: Optional[str] = Nonestep: int = 0done: bool = Falseclass Action(BaseModel):action_type: str # "write_comment", "skip", "done"comment_text: Optional[str] = Noneclass Reward(BaseModel):value: floatclass State(BaseModel):pr_title: strpr_description: strcode_snippet: strcomments: List[str]agent_comment: Optional[str]step: int
models.py+8-4