get_from_env() — langchain Function Reference
Architecture documentation for the get_from_env() function in test_dump.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 0023f5f1_4dd7_41ab_a99c_028d66cdf97c["get_from_env()"] 394a49a9_2d6c_8718_fab8_41604a436cc5["TestClass"] 0023f5f1_4dd7_41ab_a99c_028d66cdf97c -->|defined in| 394a49a9_2d6c_8718_fab8_41604a436cc5 style 0023f5f1_4dd7_41ab_a99c_028d66cdf97c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/load/test_dump.py lines 97–103
def get_from_env(cls, values: dict) -> Any:
"""Get the values from the environment."""
if "my_favorite_secret" not in values:
values["my_favorite_secret"] = os.getenv("MY_FAVORITE_SECRET")
if "my_other_secret" not in values:
values["my_other_secret"] = os.getenv("MY_OTHER_SECRET")
return values
Domain
Subdomains
Source
Frequently Asked Questions
What does get_from_env() do?
get_from_env() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/load/test_dump.py.
Where is get_from_env() defined?
get_from_env() is defined in libs/langchain/tests/unit_tests/load/test_dump.py at line 97.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free