LangChain
Core
Community
Experimental
openai
mistralai
robocorp
google-vertexai
nvidia-trt
anthropic
together
nvidia-ai-endpoints
exa
google-genai
Partner libs
openai
mistralai
robocorp
google-vertexai
nvidia-trt
anthropic
together
nvidia-ai-endpoints
exa
google-genai
Docs
Toggle Menu
Prev
Up
Next
langchain_core.utils.env
.get_from_env
get_from_env()
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.