langchain_core.utils.env.get_from_env¶

langchain_core.utils.env.get_from_env(key: str, env_key: str, default: Optional[str] = None) str[source]¶

Get a value from a dictionary or an environment variable.

Parameters
  • key (str) –

  • env_key (str) –

  • default (Optional[str]) –

Return type

str