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