LangChain
Core
Community
Experimental
exa
google-genai
nvidia-trt
openai
together
robocorp
nvidia-ai-endpoints
anthropic
google-vertexai
mistralai
Partner libs
exa
google-genai
nvidia-trt
openai
together
robocorp
nvidia-ai-endpoints
anthropic
google-vertexai
mistralai
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.