test__validate_example_inputs_for_chain_single_input_multi_expect() — langchain Function Reference
Architecture documentation for the test__validate_example_inputs_for_chain_single_input_multi_expect() function in test_runner_utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 2b912bee_c9d6_0e5a_656d_186ad1fcac41["test__validate_example_inputs_for_chain_single_input_multi_expect()"] c6cd417d_d0bc_a309_dd34_61e338d2ac18["test_runner_utils.py"] 2b912bee_c9d6_0e5a_656d_186ad1fcac41 -->|defined in| c6cd417d_d0bc_a309_dd34_61e338d2ac18 style 2b912bee_c9d6_0e5a_656d_186ad1fcac41 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/smith/evaluation/test_runner_utils.py lines 146–152
def test__validate_example_inputs_for_chain_single_input_multi_expect() -> None:
mock_ = mock.MagicMock()
mock_.inputs = {"foo": "bar"}
chain = mock.MagicMock()
chain.input_keys = ["def not foo", "oh here is another"]
with pytest.raises(InputFormatError, match="Example inputs missing expected"):
_validate_example_inputs_for_chain(mock_, chain, None)
Domain
Subdomains
Source
Frequently Asked Questions
What does test__validate_example_inputs_for_chain_single_input_multi_expect() do?
test__validate_example_inputs_for_chain_single_input_multi_expect() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/smith/evaluation/test_runner_utils.py.
Where is test__validate_example_inputs_for_chain_single_input_multi_expect() defined?
test__validate_example_inputs_for_chain_single_input_multi_expect() is defined in libs/langchain/tests/unit_tests/smith/evaluation/test_runner_utils.py at line 146.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free