acall_func_with_variable_args#

langchain_core.runnables.config.acall_func_with_variable_args(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_manager: AsyncCallbackManagerForChainRun | None = None, **kwargs: Any) Awaitable[Output][source]#

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

Parameters:
  • (Union[Callable[[Input] (func) – AsyncCallbackManagerForChainRun], Awaitable[Output]], Callable[[Input, AsyncCallbackManagerForChainRun, RunnableConfig], Awaitable[Output]]]): The function to call.

  • Awaitable[Output]] – AsyncCallbackManagerForChainRun], Awaitable[Output]], Callable[[Input, AsyncCallbackManagerForChainRun, RunnableConfig], Awaitable[Output]]]): The function to call.

  • Callable[[Input – AsyncCallbackManagerForChainRun], Awaitable[Output]], Callable[[Input, AsyncCallbackManagerForChainRun, RunnableConfig], Awaitable[Output]]]): The function to call.

  • func (Union[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_manager (Optional[AsyncCallbackManagerForChainRun])

  • kwargs (Any)

Return type:

Awaitable[Output]

:paramAsyncCallbackManagerForChainRun], Awaitable[Output]], Callable[[Input,

AsyncCallbackManagerForChainRun, RunnableConfig], Awaitable[Output]]]): The function to call.

Parameters:
Returns:

The output of the function.

Return type:

Output