Home / Function/ invoke() — langchain Function Reference

invoke() — langchain Function Reference

Architecture documentation for the invoke() function in passthrough.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  6ce9420b_2f85_aad3_3e10_edb65ab7d987["invoke()"]
  8b44d2a6_6c89_4ea1_b8c7_64e60123bbbe["RunnablePick"]
  6ce9420b_2f85_aad3_3e10_edb65ab7d987 -->|defined in| 8b44d2a6_6c89_4ea1_b8c7_64e60123bbbe
  2f3554c2_6687_e1b6_f023_84b0e33b81ed["invoke()"]
  6ce9420b_2f85_aad3_3e10_edb65ab7d987 -->|calls| 2f3554c2_6687_e1b6_f023_84b0e33b81ed
  style 6ce9420b_2f85_aad3_3e10_edb65ab7d987 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/runnables/passthrough.py lines 757–763

    def invoke(
        self,
        input: dict[str, Any],
        config: RunnableConfig | None = None,
        **kwargs: Any,
    ) -> Any:
        return self._call_with_config(self._pick, input, config, **kwargs)

Domain

Subdomains

Calls

Frequently Asked Questions

What does invoke() do?
invoke() is a function in the langchain codebase, defined in libs/core/langchain_core/runnables/passthrough.py.
Where is invoke() defined?
invoke() is defined in libs/core/langchain_core/runnables/passthrough.py at line 757.
What does invoke() call?
invoke() calls 1 function(s): invoke.

Analyze Your Own Codebase

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

Try Supermodel Free