_call() — langchain Function Reference
Architecture documentation for the _call() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 70ced93c_1678_5151_e7bb_a3789f5e33b1["_call()"] f3cef70e_11b0_61c9_7ec0_7308f4b45056["Chain"] 70ced93c_1678_5151_e7bb_a3789f5e33b1 -->|defined in| f3cef70e_11b0_61c9_7ec0_7308f4b45056 cbab652e_92a7_bf56_f96d_801fd5f6dacd["invoke()"] cbab652e_92a7_bf56_f96d_801fd5f6dacd -->|calls| 70ced93c_1678_5151_e7bb_a3789f5e33b1 style 70ced93c_1678_5151_e7bb_a3789f5e33b1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/base.py lines 318–338
def _call(
self,
inputs: builtins.dict[str, Any],
run_manager: CallbackManagerForChainRun | None = None,
) -> builtins.dict[str, Any]:
"""Execute the chain.
This is a private method that is not user-facing. It is only called within
`Chain.__call__`, which is the user-facing wrapper method that handles
callbacks configuration and some input/output processing.
Args:
inputs: A dict of named inputs to the chain. Assumed to contain all inputs
specified in `Chain.input_keys`, including any inputs added by memory.
run_manager: The callbacks manager that contains the callback handlers for
this run of the chain.
Returns:
A dict of named outputs. Should contain all outputs specified in
`Chain.output_keys`.
"""
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _call() do?
_call() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/base.py.
Where is _call() defined?
_call() is defined in libs/langchain/langchain_classic/chains/base.py at line 318.
What calls _call()?
_call() 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