test_sequential_missing_inputs() — langchain Function Reference
Architecture documentation for the test_sequential_missing_inputs() function in test_sequential.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 21ebe459_58ee_b923_ab1f_26916907349f["test_sequential_missing_inputs()"] 0021bb47_51ab_bafd_26b4_c2849000554a["test_sequential.py"] 21ebe459_58ee_b923_ab1f_26916907349f -->|defined in| 0021bb47_51ab_bafd_26b4_c2849000554a style 21ebe459_58ee_b923_ab1f_26916907349f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/chains/test_sequential.py lines 143–152
def test_sequential_missing_inputs() -> None:
"""Test error is raised when input variables are missing."""
chain_1 = FakeChain(input_variables=["foo"], output_variables=["bar"])
chain_2 = FakeChain(input_variables=["bar", "test"], output_variables=["baz"])
with pytest.raises(
ValueError,
match=re.escape("Value error, Missing required input keys: {'test'}"),
):
# Also needs "test" as an input
SequentialChain(chains=[chain_1, chain_2], input_variables=["foo"]) # type: ignore[call-arg]
Domain
Subdomains
Source
Frequently Asked Questions
What does test_sequential_missing_inputs() do?
test_sequential_missing_inputs() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/test_sequential.py.
Where is test_sequential_missing_inputs() defined?
test_sequential_missing_inputs() is defined in libs/langchain/tests/unit_tests/chains/test_sequential.py at line 143.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free