Enter to send·Shift+Enter new line
Retrieve an environment variable from a list of namespaces.
get_env_var( name: str, default: Optional[str] = None, *, namespaces: tuple
name
str
The name of the environment variable.
default
Optional[str]
None
The default value to return if the environment variable is not found.
namespaces
tuple[str, ...]
('LANGSMITH', 'LANGCHAIN')
A tuple of namespaces to search for the environment variable.
Defaults to ('LANGSMITH', 'LANGCHAINs').
('LANGSMITH', 'LANGCHAINs')