Async call function that may optionally accept a run_manager and/or 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]| Name | Type | Description |
|---|---|---|
func* | Callable[[Input], Awaitable[Output]] | Callable[[Input, RunnableConfig], Awaitable[Output]] | Callable[[Input, AsyncCallbackManagerForChainRun], Awaitable[Output]] | Callable[[Input, AsyncCallbackManagerForChainRun, RunnableConfig], Awaitable[Output]] | The function to call. |
input* | Input | The input to the function. |
config* | RunnableConfig | The config to pass to the function. |
run_manager | AsyncCallbackManagerForChainRun | None | Default: NoneThe run manager to pass to the function. |
**kwargs | Any | Default: {}The keyword arguments to pass to the function. |