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