Update an existing environment with new configuration and create a new version Args: env_cls: New environment class with updated implementation env_config_dict: Configuration dict for environment initialization new_version: New version string. If
(self,
env_cls: Type[Environment],
env_config_dict: Optional[Dict[str, Any]] = None,
new_version: Optional[str] = None,
description: Optional[str] = None)
| 160 | self._registered_configs.clear() |
| 161 | |
| 162 | async def update(self, |
| 163 | env_cls: Type[Environment], |
| 164 | env_config_dict: Optional[Dict[str, Any]] = None, |
| 165 | new_version: Optional[str] = None, |
| 166 | description: Optional[str] = None) -> EnvironmentConfig: |
| 167 | """Update an existing environment with new configuration and create a new version |
| 168 | |
| 169 | Args: |
| 170 | env_cls: New environment class with updated implementation |
| 171 | env_config_dict: Configuration dict for environment initialization |
| 172 | new_version: New version string. If None, auto-increments from current version. |
| 173 | description: Description for this version update |
| 174 | |
| 175 | Returns: |
| 176 | EnvironmentConfig: Updated environment configuration |
| 177 | """ |
| 178 | env_config = await self.environment_context_manager.update( |
| 179 | env_cls, env_config_dict=env_config_dict, new_version=new_version, description=description |
| 180 | ) |
| 181 | self._registered_configs[env_config.name] = env_config |
| 182 | return env_config |
| 183 | |
| 184 | async def copy(self, |
| 185 | env_name: str, |
no outgoing calls