Home / Function/ _invoke() — langchain Function Reference

_invoke() — langchain Function Reference

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

Function python LangChainCore Runnables calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  d7c8b78b_bd8b_c15c_ce21_97525a7a5764["_invoke()"]
  11e31530_bade_f413_97e7_9abc389b68c7["RunnableEachBase"]
  d7c8b78b_bd8b_c15c_ce21_97525a7a5764 -->|defined in| 11e31530_bade_f413_97e7_9abc389b68c7
  15bcbb64_a12d_e5ab_35ce_209867a93c74["_invoke()"]
  15bcbb64_a12d_e5ab_35ce_209867a93c74 -->|calls| d7c8b78b_bd8b_c15c_ce21_97525a7a5764
  15bcbb64_a12d_e5ab_35ce_209867a93c74["_invoke()"]
  d7c8b78b_bd8b_c15c_ce21_97525a7a5764 -->|calls| 15bcbb64_a12d_e5ab_35ce_209867a93c74
  2826dfcf_5024_bd4d_0268_8f909fbbae0c["batch()"]
  d7c8b78b_bd8b_c15c_ce21_97525a7a5764 -->|calls| 2826dfcf_5024_bd4d_0268_8f909fbbae0c
  style d7c8b78b_bd8b_c15c_ce21_97525a7a5764 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/runnables/base.py lines 5361–5371

    def _invoke(
        self,
        inputs: list[Input],
        run_manager: CallbackManagerForChainRun,
        config: RunnableConfig,
        **kwargs: Any,
    ) -> list[Output]:
        configs = [
            patch_config(config, callbacks=run_manager.get_child()) for _ in inputs
        ]
        return self.bound.batch(inputs, configs, **kwargs)

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free