acall_func_with_variable_args() — langchain Function Reference
Architecture documentation for the acall_func_with_variable_args() function in config.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 95fcced2_9808_e026_b3e9_80a531a523ea["acall_func_with_variable_args()"] 217fac2f_15f6_1c1e_2b6e_1dae6dfdea14["config.py"] 95fcced2_9808_e026_b3e9_80a531a523ea -->|defined in| 217fac2f_15f6_1c1e_2b6e_1dae6dfdea14 ca40928c_5f65_aced_42f4_97bbe3d61175["patch_config()"] 95fcced2_9808_e026_b3e9_80a531a523ea -->|calls| ca40928c_5f65_aced_42f4_97bbe3d61175 style 95fcced2_9808_e026_b3e9_80a531a523ea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/runnables/config.py lines 455–486
def 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]:
"""Async call function that may optionally accept a run_manager and/or config.
Args:
func: The function to call.
input: The input to the function.
config: The config to pass to the function.
run_manager: The run manager to pass to the function.
**kwargs: The keyword arguments to pass to the function.
Returns:
The output of the function.
"""
if accepts_config(func):
if run_manager is not None:
kwargs["config"] = patch_config(config, callbacks=run_manager.get_child())
else:
kwargs["config"] = config
if run_manager is not None and accepts_run_manager(func):
kwargs["run_manager"] = run_manager
return func(input, **kwargs) # type: ignore[call-arg]
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does acall_func_with_variable_args() do?
acall_func_with_variable_args() is a function in the langchain codebase, defined in libs/core/langchain_core/runnables/config.py.
Where is acall_func_with_variable_args() defined?
acall_func_with_variable_args() is defined in libs/core/langchain_core/runnables/config.py at line 455.
What does acall_func_with_variable_args() call?
acall_func_with_variable_args() calls 1 function(s): patch_config.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free