LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-corerunnablesconfigacall_func_with_variable_args
    Function●Since v0.1

    acall_func_with_variable_args

    Copy
    acall_func_with_variable_args(
      func: Callable[[Input], Awaitable[Output]] | Callable[[Input,
    View source on GitHub
    RunnableConfig
    ]
    ,
    Awaitable
    [
    Output
    ]
    ]
    |
    Callable
    [
    [
    Input
    ,
    AsyncCallbackManagerForChainRun
    ]
    ,
    Awaitable
    [
    Output
    ]
    ]
    |
    Callable
    [
    [
    Input
    ,
    AsyncCallbackManagerForChainRun
    ,
    RunnableConfig
    ]
    ,
    Awaitable
    [
    Output
    ]
    ]
    ,
    input
    :
    Input
    ,
    config
    :
    RunnableConfig
    ,
    run_manager
    :
    AsyncCallbackManagerForChainRun
    |
    None
    =
    None
    ,
    **
    kwargs
    :
    Any
    =
    {
    }
    )
    ->
    Awaitable
    [
    Output
    ]

    Parameters

    NameTypeDescription
    func*Callable[[Input], Awaitable[Output]] | Callable[[Input, RunnableConfig], Awaitable[Output]] | Callable[[Input, AsyncCallbackManagerForChainRun], Awaitable[Output]] | Callable[[Input, AsyncCallbackManagerForChainRun, RunnableConfig], Awaitable[Output]]
    input*Input
    config*RunnableConfig
    run_managerAsyncCallbackManagerForChainRun | None
    Default:None
    **kwargsAny
    Default:{}

    Async call function that may optionally accept a run_manager and/or config.

    The function to call.

    The input to the function.

    The config to pass to the function.

    The run manager to pass to the function.

    The keyword arguments to pass to the function.