_call() — langchain Function Reference
Architecture documentation for the _call() function in sequential.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 36348bf6_4ec4_a0d7_3590_010c39d13c55["_call()"] d01877d8_1123_f550_8a2f_0981eecde24e["SimpleSequentialChain"] 36348bf6_4ec4_a0d7_3590_010c39d13c55 -->|defined in| d01877d8_1123_f550_8a2f_0981eecde24e b66566fe_04a3_9200_5ef2_c270b021325d["_call()"] b66566fe_04a3_9200_5ef2_c270b021325d -->|calls| 36348bf6_4ec4_a0d7_3590_010c39d13c55 b66566fe_04a3_9200_5ef2_c270b021325d["_call()"] 36348bf6_4ec4_a0d7_3590_010c39d13c55 -->|calls| b66566fe_04a3_9200_5ef2_c270b021325d style 36348bf6_4ec4_a0d7_3590_010c39d13c55 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/sequential.py lines 164–185
def _call(
self,
inputs: dict[str, str],
run_manager: CallbackManagerForChainRun | None = None,
) -> dict[str, str]:
_run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager()
_input = inputs[self.input_key]
color_mapping = get_color_mapping([str(i) for i in range(len(self.chains))])
for i, chain in enumerate(self.chains):
_input = chain.run(
_input,
callbacks=_run_manager.get_child(f"step_{i + 1}"),
)
if self.strip_outputs:
_input = _input.strip()
_run_manager.on_text(
_input,
color=color_mapping[str(i)],
end="\n",
verbose=self.verbose,
)
return {self.output_key: _input}
Domain
Subdomains
Calls
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/sequential.py.
Where is _call() defined?
_call() is defined in libs/langchain/langchain_classic/chains/sequential.py at line 164.
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