langchain_core.runnables.config.acall_func_with_variable_args

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

异步调用函数,可选项接受 run_manager 和/或 配置。

参数
  • Union [[Callable[[Input]] (func) – AsyncCallbackManagerForChainRun], Awaitable[Output]], Callable[[Input, AsyncCallbackManagerForChainRun, RunnableConfig], Awaitable[Output]]]]): 要调用的函数。

  • Awaitable[Output], Awaitable[Output]], Callable[[Input, AsyncCallbackManagerForChainRun, RunnableConfig], Awaitable[Output]]]: 要调用的函数。

  • Callable[[Input, AsyncCallbackManagerForChainRun], Awaitable[Output]], Callable[[Input, AsyncCallbackManagerForChainRun, RunnableConfig], Awaitable[Output]]]: 要调用的函数。

  • func (Union[Callable[[Input], Awaitable[Output]], Callable[[Input, RunnableConfig], Awaitable[Output]], Callable[[Input, AsyncCallbackManagerForChainRun, RunnableConfig], Awaitable[Output]]]]) –

  • 输入 (输入) –

  • 配置 (RunnableConfig) –

  • 运行管理器 (Optional[AsyncCallbackManagerForChainRun]) –

  • 额外参数 (Any) –

返回类型

Awaitable[输出]

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

AsyncCallbackManagerForChainRun, RunnableConfig], Awaitable[Output]]]): 调用的函数。

参数
返回

函数的输出。

返回类型

输出