test_configurable_alts_factory() — langchain Function Reference
Architecture documentation for the test_configurable_alts_factory() function in test_runnable.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 5af08be9_42b6_be5e_f597_d71ee5fed1c1["test_configurable_alts_factory()"] 26df6ad8_0189_51d0_c3c1_6c3248893ff5["test_runnable.py"] 5af08be9_42b6_be5e_f597_d71ee5fed1c1 -->|defined in| 26df6ad8_0189_51d0_c3c1_6c3248893ff5 fb618d44_c03b_ea8b_385b_2278dfb173d4["invoke()"] 5af08be9_42b6_be5e_f597_d71ee5fed1c1 -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4 style 5af08be9_42b6_be5e_f597_d71ee5fed1c1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_runnable.py lines 872–880
def test_configurable_alts_factory() -> None:
fake_llm = FakeListLLM(responses=["a"]).configurable_alternatives(
ConfigurableField(id="llm", name="LLM"),
chat=partial(FakeListLLM, responses=["b"]),
)
assert fake_llm.invoke("...") == "a"
assert fake_llm.with_config(configurable={"llm": "chat"}).invoke("...") == "b"
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_configurable_alts_factory() do?
test_configurable_alts_factory() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable.py.
Where is test_configurable_alts_factory() defined?
test_configurable_alts_factory() is defined in libs/core/tests/unit_tests/runnables/test_runnable.py at line 872.
What does test_configurable_alts_factory() call?
test_configurable_alts_factory() calls 1 function(s): invoke.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free