Home / Function/ _ainvoke() — langchain Function Reference

_ainvoke() — langchain Function Reference

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

Function python LangChainCore Runnables calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  ecbf54bb_b4df_7f24_797a_3214e4425b2f["_ainvoke()"]
  11e31530_bade_f413_97e7_9abc389b68c7["RunnableEachBase"]
  ecbf54bb_b4df_7f24_797a_3214e4425b2f -->|defined in| 11e31530_bade_f413_97e7_9abc389b68c7
  4343d7c8_f1ee_8c72_b4a3_a26cae12cc7c["_ainvoke()"]
  4343d7c8_f1ee_8c72_b4a3_a26cae12cc7c -->|calls| ecbf54bb_b4df_7f24_797a_3214e4425b2f
  4343d7c8_f1ee_8c72_b4a3_a26cae12cc7c["_ainvoke()"]
  ecbf54bb_b4df_7f24_797a_3214e4425b2f -->|calls| 4343d7c8_f1ee_8c72_b4a3_a26cae12cc7c
  3e736ea3_30ef_68c3_5f32_b8a49b37d501["abatch()"]
  ecbf54bb_b4df_7f24_797a_3214e4425b2f -->|calls| 3e736ea3_30ef_68c3_5f32_b8a49b37d501
  style ecbf54bb_b4df_7f24_797a_3214e4425b2f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/runnables/base.py lines 5379–5389

    async def _ainvoke(
        self,
        inputs: list[Input],
        run_manager: AsyncCallbackManagerForChainRun,
        config: RunnableConfig,
        **kwargs: Any,
    ) -> list[Output]:
        configs = [
            patch_config(config, callbacks=run_manager.get_child()) for _ in inputs
        ]
        return await self.bound.abatch(inputs, configs, **kwargs)

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free