Spaces:
Sleeping
Sleeping
ARYANPATEL-BIT commited on
Commit ·
9c2efa1
1
Parent(s): 03e27fd
Feat: created a better model
Browse files
models.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
models.py — Pydantic v2 models for the DevOps/FinOps OpenEnv environment.
|
| 3 |
+
|
| 4 |
+
Re-exports all core data models from env.py for clean external consumption.
|
| 5 |
+
Import from here if you want typed access to Observation, Action, Reward, etc.
|
| 6 |
+
|
| 7 |
+
Usage:
|
| 8 |
+
from models import Action, Observation, Reward
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
from env import (
|
| 12 |
+
ServerInfo,
|
| 13 |
+
WorkloadInfo,
|
| 14 |
+
Observation,
|
| 15 |
+
Action,
|
| 16 |
+
Reward,
|
| 17 |
+
ResetRequest,
|
| 18 |
+
INSTANCE_CATALOG,
|
| 19 |
+
)
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"ServerInfo",
|
| 23 |
+
"WorkloadInfo",
|
| 24 |
+
"Observation",
|
| 25 |
+
"Action",
|
| 26 |
+
"Reward",
|
| 27 |
+
"ResetRequest",
|
| 28 |
+
"INSTANCE_CATALOG",
|
| 29 |
+
]
|