Configuration utilities for Runnable objects.
Check if a callable accepts a config argument.
Check if a callable accepts a run_manager argument.
Set the child Runnable config + tracing context.
Ensure that a config is a dict with all keys present.
Get a list of configs from a single config or a list of configs.
It is useful for subclasses overriding batch() or abatch().
Patch a config with new values.
Merge multiple configs into one.
Call function that may optionally accept a run_manager and/or config.
Async call function that may optionally accept a run_manager and/or config.
Get a callback manager for a config.
Get an async callback manager for a config.
Get an executor for a config.
Run a function in an executor.
Async callback manager that handles callbacks from LangChain.
Callback manager for LangChain.
Implementation of the SharedTracer that POSTS to the LangChain endpoint.
Base callback manager.
Async callback manager for chain run.
Callback manager for chain run.
Empty dict type.
Configuration for a Runnable.
Custom values
The TypedDict has total=False set intentionally to:
merge_configsvar_child_runnable_config (a ContextVar that automatically passes
config down the call stack without explicit parameter passing), where
configs are merged rather than replaced# Parent sets tags
chain.invoke(input, config={"tags": ["parent"]})
# Child automatically inherits and can add:
# ensure_config({"tags": ["child"]}) -> {"tags": ["parent", "child"]}ThreadPoolExecutor that copies the context to the child thread.