Home / Function/ abatch() — langchain Function Reference

abatch() — langchain Function Reference

Architecture documentation for the abatch() function in base.py from the langchain codebase.

Function python LangChainCore Runnables calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  0eae6b52_89cc_9d0f_4747_f69145024156["abatch()"]
  9a777f9f_fc96_a4c7_ebd5_632b655b53ae["RunnableBindingBase"]
  0eae6b52_89cc_9d0f_4747_f69145024156 -->|defined in| 9a777f9f_fc96_a4c7_ebd5_632b655b53ae
  3e736ea3_30ef_68c3_5f32_b8a49b37d501["abatch()"]
  3e736ea3_30ef_68c3_5f32_b8a49b37d501 -->|calls| 0eae6b52_89cc_9d0f_4747_f69145024156
  ff1cc135_559f_c237_6539_8d8ba268c8e8["_merge_configs()"]
  0eae6b52_89cc_9d0f_4747_f69145024156 -->|calls| ff1cc135_559f_c237_6539_8d8ba268c8e8
  3e736ea3_30ef_68c3_5f32_b8a49b37d501["abatch()"]
  0eae6b52_89cc_9d0f_4747_f69145024156 -->|calls| 3e736ea3_30ef_68c3_5f32_b8a49b37d501
  style 0eae6b52_89cc_9d0f_4747_f69145024156 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/runnables/base.py lines 5738–5758

    async def abatch(
        self,
        inputs: list[Input],
        config: RunnableConfig | list[RunnableConfig] | None = None,
        *,
        return_exceptions: bool = False,
        **kwargs: Any | None,
    ) -> list[Output]:
        if isinstance(config, list):
            configs = cast(
                "list[RunnableConfig]",
                [self._merge_configs(conf) for conf in config],
            )
        else:
            configs = [self._merge_configs(config) for _ in range(len(inputs))]
        return await self.bound.abatch(
            inputs,
            configs,
            return_exceptions=return_exceptions,
            **{**self.kwargs, **kwargs},
        )

Domain

Subdomains

Called By

Frequently Asked Questions

What does abatch() do?
abatch() is a function in the langchain codebase, defined in libs/core/langchain_core/runnables/base.py.
Where is abatch() defined?
abatch() is defined in libs/core/langchain_core/runnables/base.py at line 5738.
What does abatch() call?
abatch() calls 2 function(s): _merge_configs, abatch.
What calls abatch()?
abatch() is called by 1 function(s): abatch.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free