plato-sdk-v2 2.5.0__py3-none-any.whl → 2.5.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
plato/worlds/base.py CHANGED
@@ -155,11 +155,11 @@ class BaseWorld(ABC, Generic[ConfigT]):
155
155
 
156
156
  @classmethod
157
157
  def get_schema(cls) -> dict:
158
- """Get full schema including world config, agents, and secrets."""
158
+ """Get full schema including world config, agents, secrets, and envs."""
159
159
  config_class = cls.get_config_class()
160
160
  schema = config_class.get_json_schema()
161
161
 
162
- return {
162
+ result = {
163
163
  "$schema": "https://json-schema.org/draft/2020-12/schema",
164
164
  "type": "object",
165
165
  "properties": schema.get("properties", {}),
@@ -169,6 +169,16 @@ class BaseWorld(ABC, Generic[ConfigT]):
169
169
  "envs": schema.get("envs", []),
170
170
  }
171
171
 
172
+ # Include env_list if present (for worlds with arbitrary environment lists)
173
+ if "env_list" in schema:
174
+ result["env_list"] = schema["env_list"]
175
+
176
+ # Include $defs if present (for nested type references)
177
+ if "$defs" in schema:
178
+ result["$defs"] = schema["$defs"]
179
+
180
+ return result
181
+
172
182
  @abstractmethod
173
183
  async def reset(self) -> Observation:
174
184
  """Setup the world and return initial observation.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plato-sdk-v2
3
- Version: 2.5.0
3
+ Version: 2.5.1
4
4
  Summary: Python SDK for the Plato API
5
5
  Author-email: Plato <support@plato.so>
6
6
  License-Expression: MIT
@@ -460,11 +460,11 @@ plato/v2/utils/models.py,sha256=PwehSSnIRG-tM3tWL1PzZEH77ZHhIAZ9R0UPs6YknbM,1441
460
460
  plato/v2/utils/proxy_tunnel.py,sha256=8ZTd0jCGSfIHMvSv1fgEyacuISWnGPHLPbDglWroTzY,10463
461
461
  plato/worlds/README.md,sha256=XFOkEA3cNNcrWkk-Cxnsl-zn-y0kvUENKQRSqFKpdqw,5479
462
462
  plato/worlds/__init__.py,sha256=nwuEerEkP2TSfadPiOMcUE3p6u1vhaS7ZxfTh2zNcF8,2217
463
- plato/worlds/base.py,sha256=1O3iKilXlr56mUPVovHY_BjM3S8T57FrotF4895qv5Y,30675
463
+ plato/worlds/base.py,sha256=8skzeNlufimvXdWBKVAjmgkZ3xGGt0ijRnu6darPxsk,31017
464
464
  plato/worlds/build_hook.py,sha256=KSoW0kqa5b7NyZ7MYOw2qsZ_2FkWuz0M3Ru7AKOP7Qw,3486
465
465
  plato/worlds/config.py,sha256=OJtBygnVACQl_kGF8iLofTIk8zMu8tTCNYav6lHdwNI,12874
466
466
  plato/worlds/runner.py,sha256=r9B2BxBae8_dM7y5cJf9xhThp_I1Qvf_tlPq2rs8qC8,4013
467
- plato_sdk_v2-2.5.0.dist-info/METADATA,sha256=B5O9klRDioab0Ay7I_0V0q-yNvWes23frcHXt-3rGbU,8652
468
- plato_sdk_v2-2.5.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
469
- plato_sdk_v2-2.5.0.dist-info/entry_points.txt,sha256=upGMbJCx6YWUTKrPoYvYUYfFCqYr75nHDwhA-45m6p8,136
470
- plato_sdk_v2-2.5.0.dist-info/RECORD,,
467
+ plato_sdk_v2-2.5.1.dist-info/METADATA,sha256=0yaSuouj-8F9kczKswZHAKzku3xRaSzCZol_Vf-Nh9I,8652
468
+ plato_sdk_v2-2.5.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
469
+ plato_sdk_v2-2.5.1.dist-info/entry_points.txt,sha256=upGMbJCx6YWUTKrPoYvYUYfFCqYr75nHDwhA-45m6p8,136
470
+ plato_sdk_v2-2.5.1.dist-info/RECORD,,