abatch() — langchain Function Reference
Architecture documentation for the abatch() function in test_runnable.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 8652094c_ec57_c551_fc44_9566d00cf872["abatch()"] 192ffa80_aa8c_9fdf_71de_8d2c6c5ac8d1["ControlledExceptionRunnable"] 8652094c_ec57_c551_fc44_9566d00cf872 -->|defined in| 192ffa80_aa8c_9fdf_71de_8d2c6c5ac8d1 e529913f_ad36_f5f7_eb7e_5fc8b9592de0["test_passthrough_tap_async()"] e529913f_ad36_f5f7_eb7e_5fc8b9592de0 -->|calls| 8652094c_ec57_c551_fc44_9566d00cf872 23b79a55_6bbb_71a7_5d94_7cea0078049a["test_with_config_async()"] 23b79a55_6bbb_71a7_5d94_7cea0078049a -->|calls| 8652094c_ec57_c551_fc44_9566d00cf872 f8fd0071_d931_bd7b_494d_d185445645a6["test_default_method_implementations_async()"] f8fd0071_d931_bd7b_494d_d185445645a6 -->|calls| 8652094c_ec57_c551_fc44_9566d00cf872 266fc5e9_dd16_6f4a_e9b8_5a2332b308b5["test_prompt_async()"] 266fc5e9_dd16_6f4a_e9b8_5a2332b308b5 -->|calls| 8652094c_ec57_c551_fc44_9566d00cf872 f79fda9a_7592_ab24_1ee1_8962d7158c24["test_prompt_with_chat_model_async()"] f79fda9a_7592_ab24_1ee1_8962d7158c24 -->|calls| 8652094c_ec57_c551_fc44_9566d00cf872 f1012a38_ff36_4def_e0f2_df496716b208["test_prompt_with_llm()"] f1012a38_ff36_4def_e0f2_df496716b208 -->|calls| 8652094c_ec57_c551_fc44_9566d00cf872 d3e93cb3_c29c_f455_2d43_c53eed4a194a["test_prompt_with_llm_parser()"] d3e93cb3_c29c_f455_2d43_c53eed4a194a -->|calls| 8652094c_ec57_c551_fc44_9566d00cf872 0220d3ab_db8c_f784_31f0_cfee558a3902["test_router_runnable_async()"] 0220d3ab_db8c_f784_31f0_cfee558a3902 -->|calls| 8652094c_ec57_c551_fc44_9566d00cf872 d3230587_b866_4309_a37d_9fdfe73dd2ed["test_higher_order_lambda_runnable_async()"] d3230587_b866_4309_a37d_9fdfe73dd2ed -->|calls| 8652094c_ec57_c551_fc44_9566d00cf872 a881619b_3d89_0144_9cc5_f86b0287ead9["test_async_retry_batch_preserves_order()"] a881619b_3d89_0144_9cc5_f86b0287ead9 -->|calls| 8652094c_ec57_c551_fc44_9566d00cf872 0a847979_2369_aa0c_9f5c_8cc81c9d7c44["test_async_retrying()"] 0a847979_2369_aa0c_9f5c_8cc81c9d7c44 -->|calls| 8652094c_ec57_c551_fc44_9566d00cf872 8710f0c7_ddeb_700b_8de4_7a25105fc4b1["test_seq_abatch_return_exceptions()"] 8710f0c7_ddeb_700b_8de4_7a25105fc4b1 -->|calls| 8652094c_ec57_c551_fc44_9566d00cf872 8e480654_8e6a_1a28_4d6e_d2328141d13a["test_runnable_branch_abatch()"] 8e480654_8e6a_1a28_4d6e_d2328141d13a -->|calls| 8652094c_ec57_c551_fc44_9566d00cf872 style 8652094c_ec57_c551_fc44_9566d00cf872 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_runnable.py lines 4346–4360
async def abatch(
self,
inputs: list[str],
config: RunnableConfig | list[RunnableConfig] | None = None,
*,
return_exceptions: bool = False,
**kwargs: Any,
) -> list[str]:
return await self._abatch_with_config(
self._abatch,
inputs,
config,
return_exceptions=return_exceptions,
**kwargs,
)
Domain
Subdomains
Called By
- test_async_retry_batch_preserves_order()
- test_async_retrying()
- test_default_method_implementations_async()
- test_higher_order_lambda_runnable_async()
- test_passthrough_tap_async()
- test_prompt_async()
- test_prompt_with_chat_model_async()
- test_prompt_with_llm()
- test_prompt_with_llm_parser()
- test_router_runnable_async()
- test_runnable_branch_abatch()
- test_runnable_gen_async()
- test_runnable_gen_context_config_async()
- test_runnable_iter_context_config_async()
- test_runnable_lambda_context_config_async()
- test_seq_abatch_return_exceptions()
- test_with_config_async()
Source
Frequently Asked Questions
What does abatch() do?
abatch() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable.py.
Where is abatch() defined?
abatch() is defined in libs/core/tests/unit_tests/runnables/test_runnable.py at line 4346.
What calls abatch()?
abatch() is called by 17 function(s): test_async_retry_batch_preserves_order, test_async_retrying, test_default_method_implementations_async, test_higher_order_lambda_runnable_async, test_passthrough_tap_async, test_prompt_async, test_prompt_with_chat_model_async, test_prompt_with_llm, and 9 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free