Download server/models.py from rithwik-ravikumar/sql-data-engineer-env: direct link, hf CLI and curl.
- Browser
- Download file 635 Bytes
-
https://huggingface.co/spaces/rithwik-ravikumar/sql-data-engineer-env/resolve/a2db70a2b4c3ca7a3a0ff1160a86bbfb7395e37d/server/models.py
- Command line
-
hf download hf://spaces/rithwik-ravikumar/sql-data-engineer-env@a2db70a2b4c3ca7a3a0ff1160a86bbfb7395e37d/server/models.py
-
curl -L -o models.py https://huggingface.co/spaces/rithwik-ravikumar/sql-data-engineer-env/resolve/a2db70a2b4c3ca7a3a0ff1160a86bbfb7395e37d/server/models.py
635 Bytes
| from pydantic import BaseModel | |
| from typing import Optional, Any, Dict, List | |
| class Action(BaseModel): | |
| action_str: str | |
| # Alias for compatibility with the sample inference script | |
| BrowserGymAction = Action | |
| class Observation(BaseModel): | |
| goal: str | |
| result: str | |
| step: int | |
| last_action_error: bool | |
| schema_dump: Optional[str] = None | |
| class Reward(BaseModel): | |
| value: float | |
| reason: Optional[str] = None | |
| class StepResult(BaseModel): | |
| observation: Observation | |
| reward: float | |
| done: bool | |
| info: Dict[str, Any] | |
| class ResetResult(BaseModel): | |
| observation: Observation | |
| info: Dict[str, Any] | |