MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / get

Method get

src/environment/context.py:591–603  ·  view source on GitHub ↗

Get environment instance by name Args: env_name: Environment name Returns: Environment: Environment instance or None if not found

(self, env_name: str)

Source from the content-addressed store, hash-verified

589 raise
590
591 async def get(self, env_name: str) -> Optional[Environment]:
592 """Get environment instance by name
593
594 Args:
595 env_name: Environment name
596
597 Returns:
598 Environment: Environment instance or None if not found
599 """
600 env_config = self._environment_configs.get(env_name)
601 if env_config:
602 return env_config.instance
603 return None
604
605 async def get_info(self, env_name: str) -> Optional[EnvironmentConfig]:
606 """Get environment configuration by name

Callers 12

_load_from_codeMethod · 0.45
get_infoMethod · 0.45
get_stateMethod · 0.45
updateMethod · 0.45
copyMethod · 0.45
load_from_jsonMethod · 0.45
restoreMethod · 0.45
retrieveMethod · 0.45
get_variablesMethod · 0.45
set_variablesMethod · 0.45
__call__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected