Home / Function/ _acall() — langchain Function Reference

_acall() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6da6d25b_9115_3894_df2c_74202eb2c030["_acall()"]
  68ecb97b_8f93_4457_513e_9002d34f708b["SequentialChain"]
  6da6d25b_9115_3894_df2c_74202eb2c030 -->|defined in| 68ecb97b_8f93_4457_513e_9002d34f708b
  c19f490d_78d9_035d_46c9_7f74bcf787a7["_acall()"]
  c19f490d_78d9_035d_46c9_7f74bcf787a7 -->|calls| 6da6d25b_9115_3894_df2c_74202eb2c030
  c19f490d_78d9_035d_46c9_7f74bcf787a7["_acall()"]
  6da6d25b_9115_3894_df2c_74202eb2c030 -->|calls| c19f490d_78d9_035d_46c9_7f74bcf787a7
  style 6da6d25b_9115_3894_df2c_74202eb2c030 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/chains/sequential.py lines 105–120

    async def _acall(
        self,
        inputs: dict[str, Any],
        run_manager: AsyncCallbackManagerForChainRun | None = None,
    ) -> dict[str, Any]:
        known_values = inputs.copy()
        _run_manager = run_manager or AsyncCallbackManagerForChainRun.get_noop_manager()
        callbacks = _run_manager.get_child()
        for _i, chain in enumerate(self.chains):
            outputs = await chain.acall(
                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 _acall() do?
_acall() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/sequential.py.
Where is _acall() defined?
_acall() is defined in libs/langchain/langchain_classic/chains/sequential.py at line 105.
What does _acall() call?
_acall() calls 1 function(s): _acall.
What calls _acall()?
_acall() is called by 1 function(s): _acall.

Analyze Your Own Codebase

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

Try Supermodel Free