Home / Function/ _call() — langchain Function Reference

_call() — langchain Function Reference

Architecture documentation for the _call() function in sequential.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  b66566fe_04a3_9200_5ef2_c270b021325d["_call()"]
  68ecb97b_8f93_4457_513e_9002d34f708b["SequentialChain"]
  b66566fe_04a3_9200_5ef2_c270b021325d -->|defined in| 68ecb97b_8f93_4457_513e_9002d34f708b
  36348bf6_4ec4_a0d7_3590_010c39d13c55["_call()"]
  36348bf6_4ec4_a0d7_3590_010c39d13c55 -->|calls| b66566fe_04a3_9200_5ef2_c270b021325d
  36348bf6_4ec4_a0d7_3590_010c39d13c55["_call()"]
  b66566fe_04a3_9200_5ef2_c270b021325d -->|calls| 36348bf6_4ec4_a0d7_3590_010c39d13c55
  style b66566fe_04a3_9200_5ef2_c270b021325d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/chains/sequential.py lines 92–103

    def _call(
        self,
        inputs: dict[str, str],
        run_manager: CallbackManagerForChainRun | None = None,
    ) -> dict[str, str]:
        known_values = inputs.copy()
        _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager()
        for _i, chain in enumerate(self.chains):
            callbacks = _run_manager.get_child()
            outputs = chain(known_values, return_only_outputs=True, callbacks=callbacks)
            known_values.update(outputs)
        return {k: known_values[k] for k in self.output_variables}

Subdomains

Calls

Called By

Frequently Asked Questions

What does _call() do?
_call() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/sequential.py.
Where is _call() defined?
_call() is defined in libs/langchain/langchain_classic/chains/sequential.py at line 92.
What does _call() call?
_call() calls 1 function(s): _call.
What calls _call()?
_call() is called by 1 function(s): _call.

Analyze Your Own Codebase

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

Try Supermodel Free