ensure_config#

langchain_core.runnables.config.ensure_config(config: RunnableConfig | None = None) RunnableConfig[source]#

Ensure that a config is a dict with all keys present.

Parameters:

config (Optional[RunnableConfig], optional) – The config to ensure. Defaults to None.

Returns:

The ensured config.

Return type:

RunnableConfig