LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • MCP Adapters
    • Overview
    • Agents
    • Callbacks
    • Chains
    • Chat models
    • Embeddings
    • Evaluation
    • Globals
    • Hub
    • Memory
    • Output parsers
    • Retrievers
    • Runnables
    • LangSmith
    • Storage
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    MCP Adapters
    OverviewAgentsCallbacksChainsChat modelsEmbeddingsEvaluationGlobalsHubMemoryOutput parsersRetrieversRunnablesLangSmithStorage
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-classicchainsbaseChainacall
    Method●Since v1.0Deprecated

    acall

    Asynchronously execute the chain.

    Copy
    acall(
      self,
      inputs: dict[str, Any] | Any,
      return_only_outputs: bool = False,
      callbacks: Callbacks = None,
      *,
      tags: list[str] | None = None,
      metadata: dict[str, Any] | None = None,
      run_name: str | None = None,
      include_run_info: bool = False
    ) -> dict[str, Any]

    Parameters

    NameTypeDescription
    inputs*dict[str, Any] | Any

    Dictionary of inputs, or single input if chain expects only one param. Should contain all inputs specified in Chain.input_keys except for inputs that will be set by the chain's memory.

    return_only_outputsbool
    Default:False

    Whether to return only outputs in the response. If True, only new keys generated by this chain will be returned. If False, both input keys and new keys generated by this chain will be returned.

    callbacksCallbacks
    Default:None

    Callbacks to use for this chain run. These will be called in addition to callbacks passed to the chain during construction, but only these runtime callbacks will propagate to calls to other objects.

    tagslist[str] | None
    Default:None

    List of string tags to pass to all callbacks. These will be passed in addition to tags passed to the chain during construction, but only these runtime tags will propagate to calls to other objects.

    metadatadict[str, Any] | None
    Default:None

    Optional metadata associated with the chain.

    run_namestr | None
    Default:None

    Optional name for this run of the chain.

    include_run_infobool
    Default:False

    Whether to include run info in the response. Defaults to False.

    View source on GitHub