Home / Function/ test_load_llmchain_with_non_serializable_arg() — langchain Function Reference

test_load_llmchain_with_non_serializable_arg() — langchain Function Reference

Architecture documentation for the test_load_llmchain_with_non_serializable_arg() function in test_load.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  df7a51d4_a8da_8acf_4bdd_7ee2691b9bc0["test_load_llmchain_with_non_serializable_arg()"]
  0b08876e_5a62_23f2_8ed5_ec59f46366a7["test_load.py"]
  df7a51d4_a8da_8acf_4bdd_7ee2691b9bc0 -->|defined in| 0b08876e_5a62_23f2_8ed5_ec59f46366a7
  style df7a51d4_a8da_8acf_4bdd_7ee2691b9bc0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/load/test_load.py lines 161–175

def test_load_llmchain_with_non_serializable_arg() -> None:
    import httpx
    from langchain_openai import OpenAI

    llm = OpenAI(
        model="davinci",
        temperature=0.5,
        openai_api_key="hello",
        http_client=httpx.Client(),
    )
    prompt = PromptTemplate.from_template("hello {name}!")
    chain = LLMChain(llm=llm, prompt=prompt)
    chain_obj = dumpd(chain)
    with pytest.raises(NotImplementedError):
        load(chain_obj, secrets_map={"OPENAI_API_KEY": "hello"})

Domain

Subdomains

Frequently Asked Questions

What does test_load_llmchain_with_non_serializable_arg() do?
test_load_llmchain_with_non_serializable_arg() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/load/test_load.py.
Where is test_load_llmchain_with_non_serializable_arg() defined?
test_load_llmchain_with_non_serializable_arg() is defined in libs/langchain/tests/unit_tests/load/test_load.py at line 161.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free