test_runnable_branch_abatch() — langchain Function Reference
Architecture documentation for the test_runnable_branch_abatch() function in test_runnable.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 8e480654_8e6a_1a28_4d6e_d2328141d13a["test_runnable_branch_abatch()"] 26df6ad8_0189_51d0_c3c1_6c3248893ff5["test_runnable.py"] 8e480654_8e6a_1a28_4d6e_d2328141d13a -->|defined in| 26df6ad8_0189_51d0_c3c1_6c3248893ff5 8652094c_ec57_c551_fc44_9566d00cf872["abatch()"] 8e480654_8e6a_1a28_4d6e_d2328141d13a -->|calls| 8652094c_ec57_c551_fc44_9566d00cf872 style 8e480654_8e6a_1a28_4d6e_d2328141d13a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_runnable.py lines 4658–4666
async def test_runnable_branch_abatch() -> None:
"""Test async variant of invoke."""
branch = RunnableBranch[int, int](
(lambda x: x > 0 and x < 5, lambda x: x + 1),
(lambda x: x > 5, lambda x: x * 10),
lambda x: x - 1,
)
assert await branch.abatch([1, 10, 0]) == [2, 100, -1]
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_runnable_branch_abatch() do?
test_runnable_branch_abatch() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable.py.
Where is test_runnable_branch_abatch() defined?
test_runnable_branch_abatch() is defined in libs/core/tests/unit_tests/runnables/test_runnable.py at line 4658.
What does test_runnable_branch_abatch() call?
test_runnable_branch_abatch() calls 1 function(s): abatch.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free