MCPcopy
hub / github.com/ray-project/ray / env

Method env

python/ray/client_builder.py:116–125  ·  view source on GitHub ↗

Set an environment for the session. Args: env (Dict[st, Any]): A runtime environment to use for this connection. See :ref:`runtime-environments` for what values are accepted in this dict.

(self, env: Dict[str, Any])

Source from the content-addressed store, hash-verified

114 self._deprecation_warn_enabled = True
115
116 def env(self, env: Dict[str, Any]) -> "ClientBuilder":
117 """
118 Set an environment for the session.
119 Args:
120 env (Dict[st, Any]): A runtime environment to use for this
121 connection. See :ref:`runtime-environments` for what values are
122 accepted in this dict.
123 """
124 self._job_config.set_runtime_env(env)
125 return self
126
127 def namespace(self, namespace: str) -> "ClientBuilder":
128 """

Callers 15

_init_argsMethod · 0.95
test_e2e_complexFunction · 0.80
make_envMethod · 0.80
env_creatorMethod · 0.80
test_pettingzoo_envMethod · 0.80

Calls 1

set_runtime_envMethod · 0.80