Spaces:
Sleeping
Sleeping
Download app/models.py from MaRK012/LogisticsFlow-OpenEnv: direct link, hf CLI and curl.
- Browser
- Download file 546 Bytes
-
https://huggingface.co/spaces/MaRK012/LogisticsFlow-OpenEnv/resolve/main/app/models.py
- Command line
-
hf download hf://spaces/MaRK012/LogisticsFlow-OpenEnv/app/models.py
-
curl -L -o models.py https://huggingface.co/spaces/MaRK012/LogisticsFlow-OpenEnv/resolve/main/app/models.py
546 Bytes
| from pydantic import BaseModel, Field | |
| from typing import List, Dict, Any | |
| class Action(BaseModel): | |
| command: str = Field(..., description="Action: 'ship', 'restock', or 'wait'") | |
| params: Dict[str, Any] = Field(default_factory=dict) | |
| class Observation(BaseModel): | |
| inventory: Dict[str, int] | |
| pending_orders: List[Dict[str, Any]] | |
| budget: float | |
| message: str | |
| class State(BaseModel): | |
| inventory: Dict[str, int] | |
| pending_orders: List[Dict[str, Any]] | |
| budget: float | |
| steps_taken: int | |
| max_steps: int |