test_sequential_usage_multiple_inputs() — langchain Function Reference
Architecture documentation for the test_sequential_usage_multiple_inputs() function in test_sequential.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 9953367d_85b2_de52_51c4_1ca06e8485f9["test_sequential_usage_multiple_inputs()"] 0021bb47_51ab_bafd_26b4_c2849000554a["test_sequential.py"] 9953367d_85b2_de52_51c4_1ca06e8485f9 -->|defined in| 0021bb47_51ab_bafd_26b4_c2849000554a style 9953367d_85b2_de52_51c4_1ca06e8485f9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/chains/test_sequential.py lines 70–81
def test_sequential_usage_multiple_inputs() -> None:
"""Test sequential on multiple input chains."""
chain_1 = FakeChain(input_variables=["foo", "test"], output_variables=["bar"])
chain_2 = FakeChain(input_variables=["bar", "foo"], output_variables=["baz"])
chain = SequentialChain(chains=[chain_1, chain_2], input_variables=["foo", "test"]) # type: ignore[call-arg]
output = chain({"foo": "123", "test": "456"})
expected_output = {
"baz": "123 456foo 123foo",
"foo": "123",
"test": "456",
}
assert output == expected_output
Domain
Subdomains
Source
Frequently Asked Questions
What does test_sequential_usage_multiple_inputs() do?
test_sequential_usage_multiple_inputs() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/test_sequential.py.
Where is test_sequential_usage_multiple_inputs() defined?
test_sequential_usage_multiple_inputs() is defined in libs/langchain/tests/unit_tests/chains/test_sequential.py at line 70.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free