test_loading_from_yaml() — langchain Function Reference
Architecture documentation for the test_loading_from_yaml() function in test_loading.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD b517319c_9a3c_3488_7715_80c7e77e0693["test_loading_from_yaml()"] 75e88228_0950_e62b_83e4_e5087cf36dde["test_loading.py"] b517319c_9a3c_3488_7715_80c7e77e0693 -->|defined in| 75e88228_0950_e62b_83e4_e5087cf36dde style b517319c_9a3c_3488_7715_80c7e77e0693 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/prompts/test_loading.py lines 28–36
def test_loading_from_yaml() -> None:
"""Test loading from yaml file."""
prompt = load_prompt(EXAMPLE_DIR / "simple_prompt.yaml")
expected_prompt = PromptTemplate(
input_variables=["adjective"],
partial_variables={"content": "dogs"},
template="Tell me a {adjective} joke about {content}.",
)
assert prompt == expected_prompt
Domain
Subdomains
Source
Frequently Asked Questions
What does test_loading_from_yaml() do?
test_loading_from_yaml() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/prompts/test_loading.py.
Where is test_loading_from_yaml() defined?
test_loading_from_yaml() is defined in libs/core/tests/unit_tests/prompts/test_loading.py at line 28.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free